Skip to content

Commit

Permalink
#include <sys/select.h> if we have it (#3760)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmar committed Dec 16, 2009
1 parent 21146fa commit aeeeda3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions rts/posix/Select.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
#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
Expand Down

0 comments on commit aeeeda3

Please sign in to comment.