diff options
Diffstat (limited to 'compat/daemon.c')
-rw-r--r-- | compat/daemon.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/compat/daemon.c b/compat/daemon.c index 678d78ef..5d0c9d82 100644 --- a/compat/daemon.c +++ b/compat/daemon.c @@ -28,12 +28,18 @@ * SUCH DAMAGE. */ +#include <sys/types.h> + #include <fcntl.h> #include <unistd.h> #include <stdlib.h> #include "compat.h" +#ifdef __APPLE__ +extern void daemon_darwin(void); +#endif + int daemon(int nochdir, int noclose) { @@ -61,5 +67,9 @@ daemon(int nochdir, int noclose) if (fd > 2) (void)close (fd); } + +#ifdef __APPLE__ + daemon_darwin(); +#endif return (0); } |