From 5e058cf1a0f66082ecb6f255d2b346c0dfa441c9 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Thu, 25 Feb 2021 10:50:28 +0100 Subject: Fixing compilation on Linux by removing wrt ..plt in extern declaration --- ft_read.s | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ft_read.s') diff --git a/ft_read.s b/ft_read.s index 2891045..8f6baf1 100644 --- a/ft_read.s +++ b/ft_read.s @@ -10,9 +10,11 @@ ; ; ; **************************************************************************** ; +%include "libasm.s" + %ifdef __LINUX__ %define M_FT_READ ft_read - %define M_ERRNO_LOCATION __errno_location wrt ..plt + %define M_ERRNO_LOCATION __errno_location %define M_SYSCALL_READ 0x0 %else %define M_FT_READ _ft_read @@ -41,7 +43,7 @@ FT_READ_ERROR: neg rax %endif push rax - call M_ERRNO_LOCATION + call M_ERRNO_LOCATION M_EXTERN_CALL_SUFFIX pop qword [rax] mov rax, -1 ret -- cgit