From ed8aebd02c4335fad120b4a59ea588bf87b5c0df Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Fri, 28 Apr 1995 17:06:58 +0000 Subject: [PATCH] srv_net.c: Linux doesn't have SOMAXCONN, assume 5 if not defined configure.in: Add check for -ldbm and -lndbm. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5608 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kadmin/v5server/ChangeLog | 7 +++++++ src/kadmin/v5server/configure.in | 2 ++ src/kadmin/v5server/srv_net.c | 5 +++++ 3 files changed, 14 insertions(+) diff --git a/src/kadmin/v5server/ChangeLog b/src/kadmin/v5server/ChangeLog index 35ec51958..f0937c47d 100644 --- a/src/kadmin/v5server/ChangeLog +++ b/src/kadmin/v5server/ChangeLog @@ -1,3 +1,10 @@ +Fri Apr 28 13:06:18 1995 Theodore Y. Ts'o + + * srv_net.c: Linux doesn't have SOMAXCONN, assume 5 if not defined. + +Fri Apr 28 07:32:55 1995 Theodore Y. Ts'o + + * configure.in: Add check for -ldbm and -lndbm. Thu Apr 27 17:05:54 EDT 1995 Paul Park (pjpark@mit.edu) diff --git a/src/kadmin/v5server/configure.in b/src/kadmin/v5server/configure.in index 24dc436b7..96db24427 100644 --- a/src/kadmin/v5server/configure.in +++ b/src/kadmin/v5server/configure.in @@ -4,6 +4,8 @@ CONFIG_RULES AC_SET_BUILDTOP AC_PROG_INSTALL WITH_NETLIB +AC_CHECK_LIB(ndbm,main) +AC_CHECK_LIB(dbm,main) AC_FUNC_CHECK(waitpid,AC_DEFINE(HAVE_WAITPID)) CHECK_WAIT_TYPE ET_RULES diff --git a/src/kadmin/v5server/srv_net.c b/src/kadmin/v5server/srv_net.c index bdef499e0..f07c36a41 100644 --- a/src/kadmin/v5server/srv_net.c +++ b/src/kadmin/v5server/srv_net.c @@ -44,6 +44,11 @@ #define MAX_BIND_TRIES 5 +/* linux doesn't have SOMAXCONN */ +#ifndef SOMAXCONN +#define SOMAXCONN 5 +#endif + /* * This module can use the pthreads library. To do so, define USE_PTHREADS. * You'll need to find out what else pthreads requires (e.g. -lmach -lc_r -- 2.26.2