diff --git a/ChangeLog b/ChangeLog index d4a4e7b6c..128057cbf 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 f380139d3..e3a6886bd 100644 --- a/openbsd-compat/daemon.c +++ b/openbsd-compat/daemon.c @@ -44,6 +44,10 @@ # include #endif +#ifdef HAVE_UNISTD_H +# include +#endif + int daemon(int nochdir, int noclose) {