From 4bb1be993b0916a917860ca486c898edb1f415c7 Mon Sep 17 00:00:00 2001 From: jorton Date: Tue, 11 Jun 2002 13:15:33 +0000 Subject: [PATCH] Portability fixes: conditionally include sys/select.h, include sys/types.h first. --- config.h.in | 3 +++ configure.in | 2 +- form.c | 5 ++++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/config.h.in b/config.h.in index d2d5e7a..9fbcdf4 100644 --- a/config.h.in +++ b/config.h.in @@ -3,6 +3,9 @@ /* Define if you have the header file. */ #undef HAVE_ALLOCA_H +/* Define if you have the header file. */ +#undef HAVE_SYS_SELECT_H + /* Define to 1 if GPM support is enabled */ #undef USE_GPM diff --git a/configure.in b/configure.in index 446fa86..7043e63 100644 --- a/configure.in +++ b/configure.in @@ -13,7 +13,7 @@ AC_PROG_CC 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]) diff --git a/form.c b/form.c index 2d95d2a..5564a74 100644 --- a/form.c +++ b/form.c @@ -1,15 +1,18 @@ #include "config.h" +#include + #include #include #include +#ifdef HAVE_SYS_SELECT_H #include +#endif #include #ifdef USE_GPM #include #include /* timeval */ -#include /* socket() */ #include /* socket() */ #include /* struct sockaddr_un */ #include /* O_RDONLY */ -- 2.47.2