From: Ezra Peisach Date: Thu, 21 Jun 2001 17:51:20 +0000 (+0000) Subject: * configure.in: Test need for daemon prototype X-Git-Tag: krb5-1.3-alpha1~1331 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f7297970998baac8744032ddc7f4a9729afa11ca;p=krb5.git * configure.in: Test need for daemon prototype * krb524d.c: Provide daemon prototype if needed. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13455 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/krb524/ChangeLog b/src/krb524/ChangeLog index 1b4762964..89d38057f 100644 --- a/src/krb524/ChangeLog +++ b/src/krb524/ChangeLog @@ -1,3 +1,9 @@ +2001-06-21 Ezra Peisach + + * configure.in: Test need for daemon prototype. + + * krb524d.c: Provide daemon prototype if needed. + 2001-06-20 Ezra Peisach * krb524d.c: Include for krb5_log_init() diff --git a/src/krb524/configure.in b/src/krb524/configure.in index f6603aec7..2f57e94a4 100644 --- a/src/krb524/configure.in +++ b/src/krb524/configure.in @@ -5,6 +5,9 @@ KRB5_BUILD_LIBRARY_STATIC KRB5_BUILD_LIBOBJS AC_PROG_AWK AC_CHECK_HEADERS(sys/select.h unistd.h) dnl +KRB5_NEED_PROTO([#ifdef HAVE_UNISTD_H +#include +#endif],daemon,1) AC_TYPE_SIGNAL KRB5_BUILD_PROGRAM diff --git a/src/krb524/krb524d.c b/src/krb524/krb524d.c index 03c63a54d..022cde859 100644 --- a/src/krb524/krb524d.c +++ b/src/krb524/krb524d.c @@ -40,6 +40,10 @@ #include #include "krb524.h" +#if defined(NEED_DAEMON_PROTO) +extern int daemon(int, int); +#endif + #define TIMEOUT 60 #define TKT_BUFSIZ 2048 #define MSGSIZE 8192