summaryrefslogtreecommitdiff
path: root/openbsd-compat/daemon.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2006-08-02 23:33:54 +1000
committerDarren Tucker <dtucker@zip.com.au>2006-08-02 23:33:54 +1000
commit88fdc83d4c56340fb4d39557fcd2d6fb55cb6f30 (patch)
treee82ae80e169999c01293056b001e67667c8f399f /openbsd-compat/daemon.c
parent94346f85967e54ceec7b643eb7e74f4814fd75d7 (diff)
- (dtucker) [openbsd-compat/daemon.c] Add unistd.h for fork() prototype.
Diffstat (limited to 'openbsd-compat/daemon.c')
-rw-r--r--openbsd-compat/daemon.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsd-compat/daemon.c b/openbsd-compat/daemon.c
index f380139d..e3a6886b 100644
--- a/openbsd-compat/daemon.c
+++ b/openbsd-compat/daemon.c
@@ -44,6 +44,10 @@
# include <fcntl.h>
#endif
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif
+
int
daemon(int nochdir, int noclose)
{