diff --git a/config.d/header_files.m4 b/config.d/header_files.m4 index ee969e046..6ac640ca1 100644 --- a/config.d/header_files.m4 +++ b/config.d/header_files.m4 @@ -15,7 +15,7 @@ AC_CHECK_HEADERS( netdb.h netinet/in.h process.h pthread.h pwd.h rpc/types.h setjmp.h \ signal.h stdarg.h stdio.h stdlib.h string.h strings.h sys/asoundlib.h \ sys/audioio.h sys/filio.h sys/ioctl.h sys/io.h sys/ipc.h sys/mman.h \ - sys/param.h sys/poll.h sys/shm.h sys/signal.h sys/socket.h \ + sys/param.h sys/poll.h sys/select.h sys/shm.h sys/signal.h sys/socket.h \ sys/soundcard.h sys/stat.h sys/time.h sys/types.h sys/uio.h termios.h \ time.h unistd.h vgakeyboard.h vgamouse.h windows.h winsock.h ) diff --git a/libs/util/sys.c b/libs/util/sys.c index 33434db02..47c46d203 100644 --- a/libs/util/sys.c +++ b/libs/util/sys.c @@ -52,6 +52,9 @@ #ifdef HAVE_SYS_MMAN_H # include #endif +#ifdef HAVE_SYS_SELECT_H +# include +#endif #ifdef HAVE_PWD_H # include #endif