aboutsummaryrefslogtreecommitdiffstats
path: root/libc/arch-x86/syscalls/accept.S
diff options
context:
space:
mode:
Diffstat (limited to 'libc/arch-x86/syscalls/accept.S')
-rw-r--r--libc/arch-x86/syscalls/accept.S3
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/arch-x86/syscalls/accept.S b/libc/arch-x86/syscalls/accept.S
index f5fcb5d22..5c0df0ddb 100644
--- a/libc/arch-x86/syscalls/accept.S
+++ b/libc/arch-x86/syscalls/accept.S
@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -10,7 +11,7 @@ ENTRY(accept)
addl $12, %ecx
movl $__NR_socketcall, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax