* configure.in: Check for daemon() prototype
authorEzra Peisach <epeisach@mit.edu>
Thu, 21 Jun 2001 17:28:26 +0000 (17:28 +0000)
committerEzra Peisach <epeisach@mit.edu>
Thu, 21 Jun 2001 17:28:26 +0000 (17:28 +0000)
* kpropd.c: Provide prototype if needed.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13452 dc483132-0cff-0310-8789-dd5450dbe970

src/slave/ChangeLog
src/slave/configure.in
src/slave/kpropd.c

index 4a00e3439b6fe6899a5ae26fbae27b1f1dd0bd29..5f98d02a46712ed629a2f9b961f565976dee9de4 100644 (file)
@@ -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.
index d63a3eda670f53f312b02ddf75b41135c10cdd60..dcee8f75ac6404952d6835791b2e59144de02ee1 100644 (file)
@@ -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
index 0e4327f902bdb43329f34ca0f45ebccbbbee588e..85817b97025841daf96c1dc1c995f4b466fcfb53 100644 (file)
 
 #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;