From e2384074a812b52634ce5637f6b3ce1ca839b88c Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Thu, 21 Jun 2001 17:28:26 +0000 Subject: [PATCH] * configure.in: Check for daemon() prototype * kpropd.c: Provide prototype if needed. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13452 dc483132-0cff-0310-8789-dd5450dbe970 --- src/slave/ChangeLog | 6 ++++++ src/slave/configure.in | 1 + src/slave/kpropd.c | 4 ++++ 3 files changed, 11 insertions(+) diff --git a/src/slave/ChangeLog b/src/slave/ChangeLog index 4a00e3439..5f98d02a4 100644 --- a/src/slave/ChangeLog +++ b/src/slave/ChangeLog @@ -1,3 +1,9 @@ +2001-06-21 Ezra Peisach + + * configure.in: Check for daemon() prototype. + + * kpropd.c: Provide prototype if needed. + 2001-06-18 Ezra Peisach * kpropd.c (authorized_principal): Cast argument to ispace() to int. diff --git a/src/slave/configure.in b/src/slave/configure.in index d63a3eda6..dcee8f75a 100644 --- a/src/slave/configure.in +++ b/src/slave/configure.in @@ -3,5 +3,6 @@ CONFIG_RULES AC_TYPE_MODE_T AC_PROG_INSTALL AC_CHECK_LIB(util,main) +KRB5_NEED_PROTO([#include ],daemon,1) KRB5_BUILD_PROGRAM V5_AC_OUTPUT_MAKEFILE diff --git a/src/slave/kpropd.c b/src/slave/kpropd.c index 0e4327f90..85817b970 100644 --- a/src/slave/kpropd.c +++ b/src/slave/kpropd.c @@ -82,6 +82,10 @@ #include "kprop.h" +#if defined(NEED_DAEMON_PROTO) +extern int daemon(int, int); +#endif + #define SYSLOG_CLASS LOG_DAEMON static char *kprop_version = KPROP_PROT_VERSION; -- 2.26.2