Fixed fork() detection
This commit is contained in:
parent
5458ba05b5
commit
1c84d1aecf
@ -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.
|
# Checks for library functions.
|
||||||
AC_FUNC_MALLOC
|
AC_FUNC_MALLOC
|
||||||
AC_CHECK_FUNCS([memset socket strerror])
|
AC_CHECK_FUNCS([memset socket strerror fork])
|
||||||
|
|
||||||
AC_CONFIG_FILES([Makefile])
|
AC_CONFIG_FILES([Makefile])
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
@ -173,7 +173,7 @@ int main(int argc, char* argv[]) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Fork into background */
|
/* Fork into background */
|
||||||
#ifdef fork
|
#ifdef HAVE_FORK
|
||||||
daemon_pid = fork();
|
daemon_pid = fork();
|
||||||
|
|
||||||
/* If error, fail */
|
/* If error, fail */
|
||||||
|
Loading…
Reference in New Issue
Block a user