From 1c84d1aecf5ebdcdeb98d82c82fe0fc574a184a8 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Thu, 10 Feb 2011 23:57:38 -0800 Subject: [PATCH] Fixed fork() detection --- guacd/configure.in | 2 +- guacd/src/daemon.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/guacd/configure.in b/guacd/configure.in index 18c25cf8..36a30c52 100644 --- a/guacd/configure.in +++ b/guacd/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/guacd/src/daemon.c b/guacd/src/daemon.c index c7340619..c99e3453 100644 --- a/guacd/src/daemon.c +++ b/guacd/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 */