diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2021-02-24 11:49:02 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2021-02-24 11:49:02 +0100 |
| commit | a2347a0780a90d9f7add3f63a9752229262eedc2 (patch) | |
| tree | 2b6fb558efba349483bcbbced6fcdfc9cef0c00f /ft_read.s | |
| parent | d6240e3f6aeb342aaf13284c7cc93226970648aa (diff) | |
| download | libasm-a2347a0780a90d9f7add3f63a9752229262eedc2.tar.gz libasm-a2347a0780a90d9f7add3f63a9752229262eedc2.tar.bz2 libasm-a2347a0780a90d9f7add3f63a9752229262eedc2.zip | |
Fixing compilation on OSX by moving wrt..plt in LINUX preprocessing directives
Diffstat (limited to 'ft_read.s')
| -rw-r--r-- | ft_read.s | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -12,7 +12,7 @@ %ifdef __LINUX__ %define M_FT_READ ft_read - %define M_ERRNO_LOCATION __errno_location + %define M_ERRNO_LOCATION __errno_location wrt ..plt %define M_SYSCALL_READ 0x0 %else %define M_FT_READ _ft_read @@ -41,7 +41,7 @@ FT_READ_ERROR: neg rax %endif push rax - call M_ERRNO_LOCATION wrt ..plt + call M_ERRNO_LOCATION pop qword [rax] mov rax, -1 ret |
