Also include <sys/select.h> where available

This commit is contained in:
Pierre Pronchery 2017-04-16 23:12:50 +02:00
parent 91da7e10c1
commit 012baa84b1
2 changed files with 4 additions and 1 deletions

View File

@ -70,7 +70,7 @@ AC_CHECK_HEADERS(unistd.h inttypes.h stdint.h endian.h libc.h)
AC_CHECK_HEADERS(windows.h winsock2.h process.h) AC_CHECK_HEADERS(windows.h winsock2.h process.h)
AC_CHECK_HEADERS(alloca.h malloc.h dlfcn.h regex.h sys/cdefs.h sys/socket.h) AC_CHECK_HEADERS(alloca.h malloc.h dlfcn.h regex.h sys/cdefs.h sys/socket.h)
AC_CHECK_HEADERS(netinet/in.h arpa/inet.h sys/uio.h aio.h) AC_CHECK_HEADERS(netinet/in.h arpa/inet.h sys/uio.h aio.h)
AC_CHECK_HEADERS(sys/mman.h sys/wait.h sys/resource.h sys/time.h) AC_CHECK_HEADERS(sys/mman.h sys/wait.h sys/resource.h sys/select.h sys/time.h)
AC_CHECK_HEADERS(io.h mach/task.h) AC_CHECK_HEADERS(io.h mach/task.h)
AC_CHECK_FUNCS(setenv waitpid setrlimit gettimeofday fork kill pipe _pipe) AC_CHECK_FUNCS(setenv waitpid setrlimit gettimeofday fork kill pipe _pipe)

View File

@ -52,6 +52,9 @@
#if defined HAVE_ALLOCA_H #if defined HAVE_ALLOCA_H
# include <alloca.h> # include <alloca.h>
#endif #endif
#if defined HAVE_SYS_SELECT_H
# include <sys/select.h>
#endif
#if defined HAVE_SYS_TIME_H #if defined HAVE_SYS_TIME_H
# include <sys/time.h> # include <sys/time.h>
#endif #endif