summaryrefslogtreecommitdiff
path: root/openbsd-compat/daemon.c
diff options
context:
space:
mode:
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 f380139d3..e3a6886bd 100644
--- a/openbsd-compat/daemon.c
+++ b/openbsd-compat/daemon.c
@@ -44,6 +44,10 @@
44# include <fcntl.h> 44# include <fcntl.h>
45#endif 45#endif
46 46
47#ifdef HAVE_UNISTD_H
48# include <unistd.h>
49#endif
50
47int 51int
48daemon(int nochdir, int noclose) 52daemon(int nochdir, int noclose)
49{ 53{