Check for sys/select.h and include if found. Required to
authorSam Hartman <hartmans@mit.edu>
Tue, 13 Jun 1995 16:42:44 +0000 (16:42 +0000)
committerSam Hartman <hartmans@mit.edu>
Tue, 13 Jun 1995 16:42:44 +0000 (16:42 +0000)
compile under AIX.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6052 dc483132-0cff-0310-8789-dd5450dbe970

src/kadmin/v5server/ChangeLog
src/kadmin/v5server/configure.in
src/kadmin/v5server/srv_net.c

index 9d2d6ce52e351a259cbf88328cdf748b1604c2d8..2dbae7792d5705fbd99c15cf070dffa0e7c02c7d 100644 (file)
@@ -1,3 +1,10 @@
+Tue Jun 13 11:36:52 1995  Sam Hartman  <hartmans@tardis.MIT.EDU>
+
+       * 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
index 101288a1a314ce89e569accdbe102f6be2452e86..1c6363a82b1808cd2963aaf02baf862f6b22ad75 100644 (file)
@@ -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
index b6fd4cab2e347764c1f45ddf68d5679c4089e01b..ffdbcd69879b581494729c2af8448a871cd362f5 100644 (file)
 #include "kadm5_defs.h"
 #include "adm.h"
 
+#if HAVE_SYS_SELECT_H
+#include <sys/select.h>
+#endif
+
 /* linux doesn't have SOMAXCONN */
 #ifndef SOMAXCONN
 #define SOMAXCONN 5