CMake: set LIBVNCSERVER_HAVE_FORK in rfbconfig.h if fork() found

pull/3/head
Christian Beier 6 years ago
parent 2197b415f2
commit fc2899af7a
No known key found for this signature in database
GPG Key ID: 421BB3B45C6067F8
  1. 1
      CMakeLists.txt
  2. 3
      rfb/rfbconfig.h.cmake

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

@ -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 <ws2tcpip.h> header file. */
#cmakedefine LIBVNCSERVER_HAVE_WS2TCPIP_H 1

Loading…
Cancel
Save