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/daemon.c | |
parent | 94346f85967e54ceec7b643eb7e74f4814fd75d7 (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.c | 4 |
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) { |