]> granicus.if.org Git - libevent/commitdiff
cmake: fix checking of devpoll backend (like in autotools, by devpoll.h existence)
authorAzat Khuzhin <azat@libevent.org>
Mon, 4 Feb 2019 19:18:45 +0000 (22:18 +0300)
committerAzat Khuzhin <azat@libevent.org>
Mon, 4 Feb 2019 19:21:28 +0000 (22:21 +0300)
CMakeLists.txt
WIN32-Code/nmake/event2/event-config.h
event-config.h.cmake

index 22b5fcd2aa5558377ce8031dd3fef01dc3953a02..f847369a26c5c511901c2237bd9917be6881cb50 100644 (file)
@@ -379,7 +379,7 @@ CHECK_INCLUDE_FILE(stdint.h EVENT__HAVE_STDINT_H)
 CHECK_INCLUDE_FILE(stdlib.h EVENT__HAVE_STDLIB_H)
 CHECK_INCLUDE_FILE(strings.h EVENT__HAVE_STRINGS_H)
 CHECK_INCLUDE_FILE(string.h EVENT__HAVE_STRING_H)
-CHECK_INCLUDE_FILE(sys/devpoll.h EVENT__HAVE_SYS_DEVPOLL_H)
+CHECK_INCLUDE_FILE(sys/devpoll.h EVENT__HAVE_DEVPOLL)
 CHECK_INCLUDE_FILE(sys/epoll.h EVENT__HAVE_SYS_EPOLL_H)
 CHECK_INCLUDE_FILE(sys/eventfd.h EVENT__HAVE_SYS_EVENTFD_H)
 CHECK_INCLUDE_FILE(sys/event.h EVENT__HAVE_SYS_EVENT_H)
index 2287a2e3ad582faa5ac58feb007c8356644e85c6..c9e3632fcf91904e793d2627018dd9c99c7d42b3 100644 (file)
 /* Define to 1 if the system has the type `struct sockaddr_storage'. */
 #define EVENT__HAVE_STRUCT_SOCKADDR_STORAGE 1
 
-/* Define to 1 if you have the <sys/devpoll.h> header file. */
-/* #undef EVENT__HAVE_SYS_DEVPOLL_H */
-
 /* Define to 1 if you have the <sys/epoll.h> header file. */
 /* #undef EVENT__HAVE_SYS_EPOLL_H */
 
index 3f8a9b59273fd56e87e8d3f83e7dda93e9989c4f..ee0df54bab3010ef7692f4d24ac8414cb8cc944a 100644 (file)
 /* Define to 1 if you have the `sysctl' function. */
 #cmakedefine EVENT__HAVE_SYSCTL 1
 
-/* Define to 1 if you have the <sys/devpoll.h> header file. */
-#cmakedefine EVENT__HAVE_SYS_DEVPOLL_H 1
-
 /* Define to 1 if you have the <sys/epoll.h> header file. */
 #cmakedefine EVENT__HAVE_SYS_EPOLL_H 1