From 1772cd0c9b251a668309065a072b2c32191d5072 Mon Sep 17 00:00:00 2001 From: Sam Hartman Date: Tue, 13 Jun 1995 16:42:44 +0000 Subject: [PATCH] Check for sys/select.h and include if found. Required to compile under AIX. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6052 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kadmin/v5server/ChangeLog | 7 +++++++ src/kadmin/v5server/configure.in | 1 + src/kadmin/v5server/srv_net.c | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/src/kadmin/v5server/ChangeLog b/src/kadmin/v5server/ChangeLog index 9d2d6ce52..2dbae7792 100644 --- a/src/kadmin/v5server/ChangeLog +++ b/src/kadmin/v5server/ChangeLog @@ -1,3 +1,10 @@ +Tue Jun 13 11:36:52 1995 Sam Hartman + + * srv_net.c: Include sys/select.h if it is found. + + * configure.in: Check for sys/select.h; needed under AIX to define fd_set and associated macros. + + Sat Jun 10 23:04:00 1995 Tom Yu (tlyu@dragons-lair) * kadm5_defs.h, passwd.c, proto_serv.c: krb5_auth_context diff --git a/src/kadmin/v5server/configure.in b/src/kadmin/v5server/configure.in index 101288a1a..1c6363a82 100644 --- a/src/kadmin/v5server/configure.in +++ b/src/kadmin/v5server/configure.in @@ -5,6 +5,7 @@ AC_CHECK_LIB(ndbm,main) AC_CHECK_LIB(dbm,main) AC_FUNC_CHECK(waitpid,AC_DEFINE(HAVE_WAITPID)) AC_FUNC_CHECK(vsprintf,AC_DEFINE(HAVE_VSPRINTF)) +AC_CHECK_HEADERS(sys/select.h) CHECK_SIGNALS CHECK_SETJMP CHECK_WAIT_TYPE diff --git a/src/kadmin/v5server/srv_net.c b/src/kadmin/v5server/srv_net.c index b6fd4cab2..ffdbcd698 100644 --- a/src/kadmin/v5server/srv_net.c +++ b/src/kadmin/v5server/srv_net.c @@ -39,6 +39,10 @@ #include "kadm5_defs.h" #include "adm.h" +#if HAVE_SYS_SELECT_H +#include +#endif + /* linux doesn't have SOMAXCONN */ #ifndef SOMAXCONN #define SOMAXCONN 5 -- 2.26.2