diff options
Diffstat (limited to 'libc/arch-x86/syscalls/chmod.S')
-rw-r--r-- | libc/arch-x86/syscalls/chmod.S | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/arch-x86/syscalls/chmod.S b/libc/arch-x86/syscalls/chmod.S index 307e196..3202cbd 100644 --- a/libc/arch-x86/syscalls/chmod.S +++ b/libc/arch-x86/syscalls/chmod.S @@ -1,4 +1,5 @@ /* autogenerated by gensyscalls.py */ +#include <linux/err.h> #include <machine/asm.h> #include <sys/linux-syscalls.h> @@ -9,7 +10,7 @@ ENTRY(chmod) mov 16(%esp), %ecx movl $__NR_chmod, %eax int $0x80 - cmpl $-129, %eax + cmpl $-MAX_ERRNO, %eax jb 1f negl %eax pushl %eax |