mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-10 13:04:23 -04:00
[#372] check for errno.h
This commit is contained in:
parent
e7abef1c4c
commit
303161777d
@ -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/resource.h EVENT__HAVE_SYS_RESOURCE_H)
|
||||||
CHECK_INCLUDE_FILE(sys/sysctl.h EVENT__HAVE_SYS_SYSCTL_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(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)
|
CHECK_FUNCTION_EXISTS_EX(epoll_create EVENT__HAVE_EPOLL)
|
||||||
|
@ -243,6 +243,7 @@ AC_CHECK_HEADERS([ \
|
|||||||
sys/timerfd.h \
|
sys/timerfd.h \
|
||||||
sys/uio.h \
|
sys/uio.h \
|
||||||
sys/wait.h \
|
sys/wait.h \
|
||||||
|
errno.h \
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_CHECK_HEADERS(sys/sysctl.h, [], [], [
|
AC_CHECK_HEADERS(sys/sysctl.h, [], [], [
|
||||||
|
@ -382,6 +382,9 @@
|
|||||||
/* Define to 1 if you have the <sys/wait.h> header file. */
|
/* Define to 1 if you have the <sys/wait.h> header file. */
|
||||||
#cmakedefine EVENT__HAVE_SYS_WAIT_H
|
#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> */
|
/* Define if TAILQ_FOREACH is defined in <sys/queue.h> */
|
||||||
#cmakedefine EVENT__HAVE_TAILQFOREACH
|
#cmakedefine EVENT__HAVE_TAILQFOREACH
|
||||||
|
|
||||||
@ -394,6 +397,7 @@
|
|||||||
/* Define if timercmp is defined in <sys/time.h> */
|
/* Define if timercmp is defined in <sys/time.h> */
|
||||||
#cmakedefine EVENT__HAVE_TIMERCMP
|
#cmakedefine EVENT__HAVE_TIMERCMP
|
||||||
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `timerfd_create' function. */
|
/* Define to 1 if you have the `timerfd_create' function. */
|
||||||
#cmakedefine EVENT__HAVE_TIMERFD_CREATE
|
#cmakedefine EVENT__HAVE_TIMERFD_CREATE
|
||||||
|
|
||||||
|
@ -71,6 +71,9 @@ extern "C" {
|
|||||||
#include <ws2tcpip.h>
|
#include <ws2tcpip.h>
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
|
#ifdef EVENT__HAVE_ERRNO_H
|
||||||
|
#include <errno.h>
|
||||||
|
#endif
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user