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