From: Michael Jumper Date: Fri, 11 Feb 2011 07:57:38 +0000 (-0800) Subject: Fixed fork() detection X-Git-Url: http://git.alex.org.uk Fixed fork() detection --- diff --git a/configure.in b/configure.in index 18c25cf..36a30c5 100644 --- a/configure.in +++ b/configure.in @@ -17,7 +17,7 @@ AC_CHECK_HEADERS([netinet/in.h stdlib.h string.h sys/socket.h syslog.h unistd.h # Checks for library functions. AC_FUNC_MALLOC -AC_CHECK_FUNCS([memset socket strerror]) +AC_CHECK_FUNCS([memset socket strerror fork]) AC_CONFIG_FILES([Makefile]) AC_OUTPUT diff --git a/src/daemon.c b/src/daemon.c index c734061..c99e345 100644 --- a/src/daemon.c +++ b/src/daemon.c @@ -173,7 +173,7 @@ int main(int argc, char* argv[]) { } /* Fork into background */ -#ifdef fork +#ifdef HAVE_FORK daemon_pid = fork(); /* If error, fail */