summaryrefslogtreecommitdiff
path: root/lib/libc/wait
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/wait')
-rw-r--r--lib/libc/wait/wait.c7
-rw-r--r--lib/libc/wait/waitid.c8
-rw-r--r--lib/libc/wait/waitpid.c7
3 files changed, 16 insertions, 6 deletions
diff --git a/lib/libc/wait/wait.c b/lib/libc/wait/wait.c
index f0583bfc..262c6b75 100644
--- a/lib/libc/wait/wait.c
+++ b/lib/libc/wait/wait.c
@@ -1,5 +1,8 @@
-#include <sys/wait.h>
-#include <syscall.h>
+#include "asm/unistd_64.h" // for __NR_wait4
+#include "sys/types.h" // for pid_t
+
+#include <sys/wait.h> // for wait
+#include <syscall.h> // for __syscall_4, syscall
pid_t wait(int *stat_loc)
{
diff --git a/lib/libc/wait/waitid.c b/lib/libc/wait/waitid.c
index 5b6237b8..31060ddc 100644
--- a/lib/libc/wait/waitid.c
+++ b/lib/libc/wait/waitid.c
@@ -1,5 +1,9 @@
-#include <sys/wait.h>
-#include <syscall.h>
+#include "asm/unistd_64.h" // for __NR_waitid
+
+#include <signal.h> // for siginfo_t
+#include <sys/types.h> // for id_t
+#include <sys/wait.h> // for idtype_t, waitid
+#include <syscall.h> // for __syscall_4, syscall
int waitid(idtype_t idtype, id_t id, siginfo_t *infop, int options)
{
diff --git a/lib/libc/wait/waitpid.c b/lib/libc/wait/waitpid.c
index a5746efc..30acd0f4 100644
--- a/lib/libc/wait/waitpid.c
+++ b/lib/libc/wait/waitpid.c
@@ -1,5 +1,8 @@
-#include <sys/wait.h>
-#include <syscall.h>
+#include "asm/unistd_64.h" // for __NR_wait4
+#include "sys/types.h" // for pid_t
+
+#include <sys/wait.h> // for waitpid
+#include <syscall.h> // for __syscall_4, syscall
pid_t waitpid(pid_t pid, int *stat_loc, int options)
{