diff options
Diffstat (limited to 'src/slave')
-rw-r--r-- | src/slave/ChangeLog | 6 | ||||
-rw-r--r-- | src/slave/configure.in | 1 | ||||
-rw-r--r-- | src/slave/kpropd.c | 4 |
3 files changed, 11 insertions, 0 deletions
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 <epeisach@mit.edu> + + * configure.in: Check for daemon() prototype. + + * kpropd.c: Provide prototype if needed. + 2001-06-18 Ezra Peisach <epeisach@mit.edu> * 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 <unistd.h>],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; |