]> granicus.if.org Git - libevent/commitdiff
check for sys/select.h
authorNiels Provos <provos@gmail.com>
Tue, 31 Jul 2007 00:25:22 +0000 (00:25 +0000)
committerNiels Provos <provos@gmail.com>
Tue, 31 Jul 2007 00:25:22 +0000 (00:25 +0000)
svn:r377

configure.in
select.c

index 1acfa842e7daae5137fdf02669353122e058f021..399d61e210870fe69d5da139a86be746b422de98 100644 (file)
@@ -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,
index 3affa12d45301d35d59a24d8a2c35cbe32f1921e..d645f1a370302c9aee95d3893cac9d397da809fb 100644 (file)
--- a/select.c
+++ b/select.c
@@ -36,6 +36,9 @@
 #else
 #include <sys/_time.h>
 #endif
+#ifdef HAVE_SYS_SELECT_H
+#include <sys/select.h>
+#endif
 #include <sys/queue.h>
 #include <sys/tree.h>
 #include <signal.h>