summaryrefslogtreecommitdiff
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
parent94346f85967e54ceec7b643eb7e74f4814fd75d7 (diff)
- (dtucker) [openbsd-compat/daemon.c] Add unistd.h for fork() prototype.
-rw-r--r--ChangeLog5
-rw-r--r--openbsd-compat/daemon.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index d4a4e7b6..128057cb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+20060802
+ - (dtucker) [openbsd-compat/daemon.c] Add unistd.h for fork() prototype.
+
20060725
- (dtucker) [openbsd-compat/xmmap.c] Need fcntl.h for O_RDRW.
@@ -5059,4 +5062,4 @@
- (djm) Trim deprecated options from INSTALL. Mention UsePAM
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
-$Id: ChangeLog,v 1.4439 2006/07/25 09:52:07 dtucker Exp $
+$Id: ChangeLog,v 1.4440 2006/08/02 13:33:54 dtucker Exp $
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)
{