diff options
Diffstat (limited to 'openbsd-compat/daemon.c')
-rw-r--r-- | openbsd-compat/daemon.c | 4 |
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 | |||
47 | int | 51 | int |
48 | daemon(int nochdir, int noclose) | 52 | daemon(int nochdir, int noclose) |
49 | { | 53 | { |