summaryrefslogtreecommitdiff
path: root/lib/libc/socket/accept.c
diff options
context:
space:
mode:
authorKacper <kacper@mail.openlinux.dev>2025-12-09 21:17:12 +0100
committerKacper <kacper@mail.openlinux.dev>2025-12-09 21:17:12 +0100
commitb5cd18739a64c8d923a55b61c89ae3900faafd84 (patch)
treed192f7b25257ae9a8a4760c68f5314dcbc0d9b91 /lib/libc/socket/accept.c
parent119aed5bc787ccbf23d2f151759ec1f3a80977e1 (diff)
Fix include paths and formatting inconsistencies
Diffstat (limited to 'lib/libc/socket/accept.c')
-rw-r--r--lib/libc/socket/accept.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc/socket/accept.c b/lib/libc/socket/accept.c
index 61c469c8..f3ec738d 100644
--- a/lib/libc/socket/accept.c
+++ b/lib/libc/socket/accept.c
@@ -1,5 +1,7 @@
-#include <sys/socket.h>
-#include <syscall.h>
+#include "asm/unistd_64.h" // for __NR_accept
+
+#include <sys/socket.h> // for accept, socklen_t
+#include <syscall.h> // for __syscall_3, syscall
int accept(int socket, struct sockaddr *restrict address,
socklen_t *restrict address_len)