From: Niels Provos Date: Tue, 31 Jul 2007 00:25:22 +0000 (+0000) Subject: check for sys/select.h X-Git-Tag: release-2.0.1-alpha~604 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5e0ac7f239457e6fceac199ad649d762950e0c9b;p=libevent check for sys/select.h svn:r377 --- diff --git a/configure.in b/configure.in index 1acfa842..399d61e2 100644 --- a/configure.in +++ b/configure.in @@ -41,7 +41,7 @@ AC_CHECK_LIB(rt, clock_gettime) dnl Checks for header files. AC_HEADER_STDC -AC_CHECK_HEADERS(fcntl.h stdarg.h inttypes.h stdint.h poll.h signal.h unistd.h sys/epoll.h sys/time.h sys/queue.h sys/event.h sys/ioctl.h sys/devpoll.h port.h netinet/in6.h) +AC_CHECK_HEADERS(fcntl.h stdarg.h inttypes.h stdint.h poll.h signal.h unistd.h sys/epoll.h sys/time.h sys/queue.h sys/event.h sys/ioctl.h sys/select.h sys/devpoll.h port.h netinet/in6.h) if test "x$ac_cv_header_sys_queue_h" = "xyes"; then AC_MSG_CHECKING(for TAILQ_FOREACH in sys/queue.h) AC_EGREP_CPP(yes, diff --git a/select.c b/select.c index 3affa12d..d645f1a3 100644 --- a/select.c +++ b/select.c @@ -36,6 +36,9 @@ #else #include #endif +#ifdef HAVE_SYS_SELECT_H +#include +#endif #include #include #include