diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | openbsd-compat/daemon.c | 4 |
2 files changed, 8 insertions, 1 deletions
@@ -1,3 +1,6 @@ | |||
1 | 20060802 | ||
2 | - (dtucker) [openbsd-compat/daemon.c] Add unistd.h for fork() prototype. | ||
3 | |||
1 | 20060725 | 4 | 20060725 |
2 | - (dtucker) [openbsd-compat/xmmap.c] Need fcntl.h for O_RDRW. | 5 | - (dtucker) [openbsd-compat/xmmap.c] Need fcntl.h for O_RDRW. |
3 | 6 | ||
@@ -5059,4 +5062,4 @@ | |||
5059 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM | 5062 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM |
5060 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu | 5063 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu |
5061 | 5064 | ||
5062 | $Id: ChangeLog,v 1.4439 2006/07/25 09:52:07 dtucker Exp $ | 5065 | $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 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 | { |