aboutsummaryrefslogtreecommitdiffstats
path: root/libc/arch-x86/syscalls/lsetxattr.S
diff options
context:
space:
mode:
Diffstat (limited to 'libc/arch-x86/syscalls/lsetxattr.S')
-rw-r--r--libc/arch-x86/syscalls/lsetxattr.S3
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/arch-x86/syscalls/lsetxattr.S b/libc/arch-x86/syscalls/lsetxattr.S
index c5dbc3062..f8f50aa92 100644
--- a/libc/arch-x86/syscalls/lsetxattr.S
+++ b/libc/arch-x86/syscalls/lsetxattr.S
@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -15,7 +16,7 @@ ENTRY(lsetxattr)
mov 40(%esp), %edi
movl $__NR_lsetxattr, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax