diff options
Diffstat (limited to 'libc/arch-x86_64/syscalls/mprotect.S')
-rw-r--r-- | libc/arch-x86_64/syscalls/mprotect.S | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libc/arch-x86_64/syscalls/mprotect.S b/libc/arch-x86_64/syscalls/mprotect.S index 9ef61b5..2ad4b25 100644 --- a/libc/arch-x86_64/syscalls/mprotect.S +++ b/libc/arch-x86_64/syscalls/mprotect.S @@ -9,8 +9,7 @@ ENTRY(mprotect) jb 1f negl %eax movl %eax, %edi - call __set_errno - orq $-1, %rax + call __set_errno_internal 1: ret END(mprotect) |