diff options
author | Darren Tucker <dtucker@zip.com.au> | 2006-08-02 23:33:54 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2006-08-02 23:33:54 +1000 |
commit | 88fdc83d4c56340fb4d39557fcd2d6fb55cb6f30 (patch) | |
tree | e82ae80e169999c01293056b001e67667c8f399f /openbsd-compat | |
parent | 94346f85967e54ceec7b643eb7e74f4814fd75d7 (diff) |
- (dtucker) [openbsd-compat/daemon.c] Add unistd.h for fork() prototype.
Diffstat (limited to 'openbsd-compat')
-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 | { |