From: Ezra Peisach Date: Thu, 21 Jun 2001 17:53:27 +0000 (+0000) Subject: * configure.in: Test for daemon prototype X-Git-Tag: krb5-1.3-alpha1~1330 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1ff32e400a7415e6e80961d6209a94f32f8090c7;p=krb5.git * configure.in: Test for daemon prototype * main.c: Provide daemon prototype if needed. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13456 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kdc/ChangeLog b/src/kdc/ChangeLog index 54b7a15a9..b09540444 100644 --- a/src/kdc/ChangeLog +++ b/src/kdc/ChangeLog @@ -1,3 +1,9 @@ +2001-06-21 Ezra Peisach + + * configure.in: Test for daemon prototype. + + * main.c: Provide daemon prototype if needed. + 2001-06-21 Ezra Peisach * configure.in: Use optional argument to KRB5_NEED_PROTO so test diff --git a/src/kdc/configure.in b/src/kdc/configure.in index 8d0dd6b47..0974f3e0e 100644 --- a/src/kdc/configure.in +++ b/src/kdc/configure.in @@ -8,6 +8,11 @@ KRB5_NEED_PROTO([#include #include #endif ],swab,1) +dnl +KRB5_NEED_PROTO([#ifdef HAVE_UNISTD_H +#include +#endif],daemon,1) +dnl AC_PROG_AWK KRB5_AC_INET6 KRB5_SOCKADDR_SA_LEN diff --git a/src/kdc/main.c b/src/kdc/main.c index 34565978e..77340723a 100644 --- a/src/kdc/main.c +++ b/src/kdc/main.c @@ -48,6 +48,10 @@ #include #endif +#if defined(NEED_DAEMON_PROTO) +extern int daemon(int, int); +#endif + kdc_realm_t *find_realm_data (char *, krb5_ui_4); void usage (char *);