diff --git a/CMakeLists.txt b/CMakeLists.txt index 410f059..a218222 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -152,6 +152,7 @@ check_function_exists(gettimeofday LIBVNCSERVER_HAVE_GETTIMEOFDAY) check_function_exists(vfork LIBVNCSERVER_HAVE_VFORK) check_function_exists(vprintf LIBVNCSERVER_HAVE_VPRINTF) check_function_exists(mmap LIBVNCSERVER_HAVE_MMAP) +check_function_exists(fork LIBVNCSERVER_HAVE_FORK) # On systems such as GNU/Linux with glibc, __b64_ntop is defined in a diff --git a/rfb/rfbconfig.h.cmake b/rfb/rfbconfig.h.cmake index 58c9205..f2c96ee 100644 --- a/rfb/rfbconfig.h.cmake +++ b/rfb/rfbconfig.h.cmake @@ -75,6 +75,9 @@ /* Define to 1 if `mmap' exists. */ #cmakedefine LIBVNCSERVER_HAVE_MMAP 1 +/* Define to 1 if `fork' exists. */ +#cmakedefine LIBVNCSERVER_HAVE_FORK 1 + /* Define to 1 if you have the header file. */ #cmakedefine LIBVNCSERVER_HAVE_WS2TCPIP_H 1