first.
/* Define if you have the <alloca.h> header file. */
#undef HAVE_ALLOCA_H
+/* Define if you have the <sys/select.h> header file. */
+#undef HAVE_SYS_SELECT_H
+
/* Define to 1 if GPM support is enabled */
#undef USE_GPM
AC_PROG_INSTALL
AC_PROG_LN_S
-AC_CHECK_HEADERS(alloca.h)
+AC_CHECK_HEADERS(sys/select.h alloca.h)
AC_ARG_WITH(gpm-support, [ --with-gpm-support Compile with GPM support])
#include "config.h"
+#include <sys/types.h>
+
#include <slang.h>
#include <stdarg.h>
#include <stdlib.h>
+#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
+#endif
#include <sys/time.h>
#ifdef USE_GPM
#include <ctype.h>
#include <sys/time.h> /* timeval */
-#include <sys/types.h> /* socket() */
#include <sys/socket.h> /* socket() */
#include <sys/un.h> /* struct sockaddr_un */
#include <sys/fcntl.h> /* O_RDONLY */