summaryrefslogtreecommitdiff
path: root/lib/libc/unistd/dup.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/unistd/dup.c')
-rw-r--r--lib/libc/unistd/dup.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/unistd/dup.c b/lib/libc/unistd/dup.c
index 764c16f6..9342a6a4 100644
--- a/lib/libc/unistd/dup.c
+++ b/lib/libc/unistd/dup.c
@@ -1,4 +1,6 @@
-#include <syscall.h>
+#include "asm/unistd_64.h" // for __NR_dup
+
+#include <syscall.h> // for __syscall_1, syscall
int dup(int fildes)
{