summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libc/unistd/daemon.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/unistd/daemon.c b/libc/unistd/daemon.c
index 3a00ee166..88b75f857 100644
--- a/libc/unistd/daemon.c
+++ b/libc/unistd/daemon.c
@@ -64,6 +64,7 @@
#ifndef __ARCH_USE_MMU__
#include <sys/syscall.h>
+#include <sched.h>
/* use clone() to get fork() like behavior here -- we just want to disassociate
* from the controlling terminal
*/