#include <sys/select.h> if we have it (#3760)
authorSimon Marlow <marlowsd@gmail.com>
Wed, 16 Dec 2009 09:55:01 +0000 (09:55 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Wed, 16 Dec 2009 09:55:01 +0000 (09:55 +0000)
configure.ac
rts/posix/Select.c

index d9ca453..fa5f9a3 100644 (file)
@@ -616,7 +616,7 @@ dnl    off_t, because it will affect the result of that test.
 AC_SYS_LARGEFILE
 
 dnl ** check for specific header (.h) files that we are interested in
-AC_CHECK_HEADERS([bfd.h ctype.h dirent.h dlfcn.h errno.h fcntl.h grp.h limits.h locale.h nlist.h pthread.h pwd.h signal.h sys/mman.h sys/resource.h sys/time.h sys/timeb.h sys/timers.h sys/times.h sys/utsname.h sys/wait.h termios.h time.h utime.h windows.h winsock.h sched.h])
+AC_CHECK_HEADERS([bfd.h ctype.h dirent.h dlfcn.h errno.h fcntl.h grp.h limits.h locale.h nlist.h pthread.h pwd.h signal.h sys/mman.h sys/resource.h sys/select.h sys/time.h sys/timeb.h sys/timers.h sys/times.h sys/utsname.h sys/wait.h termios.h time.h utime.h windows.h winsock.h sched.h])
 
 dnl ** check if it is safe to include both <time.h> and <sys/time.h>
 AC_HEADER_TIME
index 46db405..d36e122 100644 (file)
 #include "Select.h"
 #include "AwaitEvent.h"
 
+# ifdef HAVE_SYS_SELECT_H
+#  include <sys/select.h>
+# endif
+
 # ifdef HAVE_SYS_TYPES_H
 #  include <sys/types.h>
 # endif