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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libc/unistd/daemon.c b/libc/unistd/daemon.c
index 03cffc7d1..2d1d9af27 100644
--- a/libc/unistd/daemon.c
+++ b/libc/unistd/daemon.c
@@ -46,6 +46,8 @@
#include <paths.h>
#include <unistd.h>
+#if defined __USE_BSD || (defined __USE_XOPEN && !defined __USE_UNIX98)
+
libc_hidden_proto(open)
libc_hidden_proto(close)
libc_hidden_proto(_exit)
@@ -87,3 +89,4 @@ int daemon( int nochdir, int noclose )
}
return(0);
}
+#endif