summaryrefslogtreecommitdiff
path: root/lib/libc/socket/sendmsg.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/socket/sendmsg.c')
-rw-r--r--lib/libc/socket/sendmsg.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/libc/socket/sendmsg.c b/lib/libc/socket/sendmsg.c
index 6414021c..b977f7da 100644
--- a/lib/libc/socket/sendmsg.c
+++ b/lib/libc/socket/sendmsg.c
@@ -1,5 +1,8 @@
-#include <syscall.h>
-#include <sys/socket.h>
+#include "asm/unistd_64.h" // for __NR_sendmsg
+
+#include <sys/socket.h> // for sendmsg
+#include <sys/types.h> // for ssize_t
+#include <syscall.h> // for __syscall_3, syscall
ssize_t sendmsg(int socket, const struct msghdr *message, int flags)
{