summaryrefslogtreecommitdiff
path: root/libc/unistd/daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/unistd/daemon.c')
-rw-r--r--libc/unistd/daemon.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/libc/unistd/daemon.c b/libc/unistd/daemon.c
index 10473cf74..d10c7931c 100644
--- a/libc/unistd/daemon.c
+++ b/libc/unistd/daemon.c
@@ -32,10 +32,11 @@
#include <paths.h>
#include <unistd.h>
+/* Note that this file should not be compiled in
+ * unless __UCLIBC_HAS_MMU__ is defined */
int daemon( int nochdir, int noclose )
{
-#if __UCLIBC_HAS_MMU__
int fd;
switch (fork()) {
@@ -61,10 +62,6 @@ int daemon( int nochdir, int noclose )
close(fd);
}
return(0);
-#else
- fprintf(stderr, "Sorry, daemon() requires an MMU\n");
- return(-1);
-#endif
}