]> granicus.if.org Git - libevent/commitdiff
[#372] check for errno.h
authorMark Ellzey <ellzey@strcpy.net>
Tue, 28 Jun 2016 17:37:24 +0000 (10:37 -0700)
committerMark Ellzey <ellzey@strcpy.net>
Tue, 28 Jun 2016 17:37:24 +0000 (10:37 -0700)
CMakeLists.txt
configure.ac
event-config.h.cmake
include/event2/util.h

index 98b669f43360424a8ad4afe8c8b9f4aabe9e2afb..86ac97af1f78ad48a51d96dc2ab427171734a373 100644 (file)
@@ -288,6 +288,7 @@ CHECK_INCLUDE_FILE(sys/wait.h EVENT__HAVE_SYS_WAIT_H)
 CHECK_INCLUDE_FILE(sys/resource.h EVENT__HAVE_SYS_RESOURCE_H)
 CHECK_INCLUDE_FILE(sys/sysctl.h EVENT__HAVE_SYS_SYSCTL_H)
 CHECK_INCLUDE_FILE(sys/timerfd.h EVENT__HAVE_SYS_TIMERFD_H)
+CHECK_INCLUDE_FILE(errno.h EVENT__HAVE_ERRNO_H)
 
 
 CHECK_FUNCTION_EXISTS_EX(epoll_create EVENT__HAVE_EPOLL)
index 215c853ede1a790c3fe92969a449da0942c15055..904cd1aa4c931334c8d46162bc188d7bf3577e00 100644 (file)
@@ -243,6 +243,7 @@ AC_CHECK_HEADERS([ \
   sys/timerfd.h \
   sys/uio.h \
   sys/wait.h \
+  errno.h \
 ])
 
 AC_CHECK_HEADERS(sys/sysctl.h, [], [], [
index 76e0d1f981dc802b74764d7c76445b18372e2309..b47a7c4c29c95ad1cd6cf5603d388ba18eeb33a4 100644 (file)
 /* Define to 1 if you have the <sys/wait.h> header file. */
 #cmakedefine EVENT__HAVE_SYS_WAIT_H
 
+/* Define to 1 if you have the <errno.h> header file. */
+#cmakedefine EVENT__HAVE_ERRNO_H
+
 /* Define if TAILQ_FOREACH is defined in <sys/queue.h> */
 #cmakedefine EVENT__HAVE_TAILQFOREACH
 
 /* Define if timercmp is defined in <sys/time.h> */
 #cmakedefine EVENT__HAVE_TIMERCMP
 
+
 /* Define to 1 if you have the `timerfd_create' function. */
 #cmakedefine EVENT__HAVE_TIMERFD_CREATE
 
index 3936786ec982e17b6261d02bc7c16cad4951be79..2c43e30e9539a333610d42803c06203f75d15df2 100644 (file)
@@ -71,6 +71,9 @@ extern "C" {
 #include <ws2tcpip.h>
 #endif
 #else
+#ifdef EVENT__HAVE_ERRNO_H
+#include <errno.h>
+#endif
 #include <sys/socket.h>
 #endif