Fixed fork() detection

This commit is contained in:
Michael Jumper 2011-02-10 23:57:38 -08:00
parent 5458ba05b5
commit 1c84d1aecf
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -173,7 +173,7 @@ int main(int argc, char* argv[]) {
}
/* Fork into background */
#ifdef fork
#ifdef HAVE_FORK
daemon_pid = fork();
/* If error, fail */