From aeeeda3efad5266b0c52b92807bb0cc3b3f23b5c Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Wed, 16 Dec 2009 09:55:01 +0000 Subject: [PATCH] #include if we have it (#3760) --- configure.ac | 2 +- rts/posix/Select.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index d9ca453..fa5f9a3 100644 --- a/configure.ac +++ b/configure.ac @@ -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 and AC_HEADER_TIME diff --git a/rts/posix/Select.c b/rts/posix/Select.c index 46db405..d36e122 100644 --- a/rts/posix/Select.c +++ b/rts/posix/Select.c @@ -17,6 +17,10 @@ #include "Select.h" #include "AwaitEvent.h" +# ifdef HAVE_SYS_SELECT_H +# include +# endif + # ifdef HAVE_SYS_TYPES_H # include # endif -- 1.7.10.4