From 5e0ac7f239457e6fceac199ad649d762950e0c9b Mon Sep 17 00:00:00 2001 From: Niels Provos Date: Tue, 31 Jul 2007 00:25:22 +0000 Subject: [PATCH] check for sys/select.h svn:r377 --- configure.in | 2 +- select.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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 -- 2.40.0