summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Beier <dontmind@freeshell.org>2019-01-06 15:32:26 +0100
committerChristian Beier <dontmind@freeshell.org>2019-01-06 15:32:26 +0100
commitacc9af95eeeb7f5be76ef011ac92d5a33683de65 (patch)
treee85161fc0595c98923ba4787cdf70cf7bce4c2cb
parent15bb719c03cc70f14c36a843dcb16ed69b405707 (diff)
downloadlibtdevnc-acc9af95eeeb7f5be76ef011ac92d5a33683de65.tar.gz
libtdevnc-acc9af95eeeb7f5be76ef011ac92d5a33683de65.zip
CMake: require stdint.h
This is used at quite a few places in the code, so make it mandatory.
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 68cd843..873cc7b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -162,6 +162,11 @@ check_include_file("stdint.h" HAVE_STDINT_H)
check_include_file("stddef.h" HAVE_STDDEF_H)
check_include_file("sys/types.h" HAVE_SYS_TYPES_H)
+# error out if required headers not found
+if(NOT HAVE_STDINT_H)
+ message(FATAL_ERROR "Could NOT find required header stdint.h")
+endif()
+
check_function_exists(gettimeofday LIBVNCSERVER_HAVE_GETTIMEOFDAY)
check_function_exists(vfork LIBVNCSERVER_HAVE_VFORK)
check_function_exists(vprintf LIBVNCSERVER_HAVE_VPRINTF)