summaryrefslogtreecommitdiff
path: root/lib/libc/socket/socketpair.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/socket/socketpair.c')
-rw-r--r--lib/libc/socket/socketpair.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/socket/socketpair.c b/lib/libc/socket/socketpair.c
index 6e78b30b..e116c645 100644
--- a/lib/libc/socket/socketpair.c
+++ b/lib/libc/socket/socketpair.c
@@ -1,4 +1,6 @@
-#include <syscall.h>
+#include "asm/unistd_64.h" // for __NR_socketpair
+
+#include <syscall.h> // for __syscall_4, syscall
int socketpair(int domain, int type, int protocol, int socket_vector[2])
{