summaryrefslogtreecommitdiffstats
path: root/libc
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2009-08-04 15:45:53 +0000
committerAustin Foxley <austinf@cetoncorp.com>2009-08-19 12:45:11 -0700
commit69a24da405aeb3a69e6339cc9f0992956ca503fb (patch)
tree74e7cf2ce92dc713ea8fb8317ba850f9278f05c1 /libc
parent71608bdba12f07e5602e8e09d1be20fe6ba8d906 (diff)
downloaduClibc-alpine-69a24da405aeb3a69e6339cc9f0992956ca503fb.tar.bz2
uClibc-alpine-69a24da405aeb3a69e6339cc9f0992956ca503fb.tar.xz
Fix daemon build for no-MMU no-threads.
CLONE_VM (used in no-MMU daemon) is defined in <bits/sched.h>. A build with threads ends up including <sched.h> via <pthread.h> via <bits/uClibc_mutex.h>; this indirect include does not happen for a build without threads, so this patch adds a direct <sched.h> include. Signed-off-by: Joseph Myers <joseph@codesourcery.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'libc')
-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
*/