summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2019-05-05 02:52:31 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2019-05-05 03:02:01 -0400
commit3abbb8dc4b3dda39d4af0d7c0327f53129e23adf (patch)
tree41ea606273cedba2df1700ba067e9031da3bfccb
parentd836d203170d5f70aabba4eb7b29643ad640cacb (diff)
downloadlighttpd1.4-3abbb8dc4b3dda39d4af0d7c0327f53129e23adf.tar.gz
lighttpd1.4-3abbb8dc4b3dda39d4af0d7c0327f53129e23adf.zip
[cmake] help cmake on FreeBSD find sys/event.h
sys/event.h does not compile standalone, so check_include_files() fails Add compiler flags -include sys/types.h so that the compile check passes This allows cmake builds on FreeBSD to detect and use kqueue.
-rw-r--r--src/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index a5fb51cb..0feb851f 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -78,7 +78,9 @@ endif()
check_include_files(sys/devpoll.h HAVE_SYS_DEVPOLL_H)
check_include_files(sys/epoll.h HAVE_SYS_EPOLL_H)
+set(CMAKE_REQUIRED_FLAGS "-include sys/types.h")
check_include_files(sys/event.h HAVE_SYS_EVENT_H)
+set(CMAKE_REQUIRED_FLAGS)
check_include_files(sys/mman.h HAVE_SYS_MMAN_H)
check_include_files(sys/poll.h HAVE_SYS_POLL_H)
check_include_files(sys/port.h HAVE_SYS_PORT_H)