diff options
author | Joseph Myers <joseph@codesourcery.com> | 2009-08-04 15:45:53 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2009-08-04 15:45:53 +0000 |
commit | 086adc370cc627c95f20e3a173dcaebe086b9869 (patch) | |
tree | 12c56c3a9a108703fbacf12eee1b154e175536ed /libc/unistd/daemon.c | |
parent | 02b53aad4c970408cab2b76408dbac85e08f8ae9 (diff) |
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>
Diffstat (limited to 'libc/unistd/daemon.c')
-rw-r--r-- | libc/unistd/daemon.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/unistd/daemon.c b/libc/unistd/daemon.c index 789488967..b18d6188f 100644 --- a/libc/unistd/daemon.c +++ b/libc/unistd/daemon.c @@ -59,6 +59,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 */ |