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 */