* configure.in: Test need for daemon prototype
authorEzra Peisach <epeisach@mit.edu>
Thu, 21 Jun 2001 17:51:20 +0000 (17:51 +0000)
committerEzra Peisach <epeisach@mit.edu>
Thu, 21 Jun 2001 17:51:20 +0000 (17:51 +0000)
* krb524d.c: Provide daemon prototype if needed.

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

src/krb524/ChangeLog
src/krb524/configure.in
src/krb524/krb524d.c

index 1b4762964dd063049cabafb632e98bcd5787de21..89d38057f67c48ca5e4f60f6243941c2c4518d86 100644 (file)
@@ -1,3 +1,9 @@
+2001-06-21  Ezra Peisach  <epeisach@mit.edu>
+
+       * configure.in: Test need for daemon prototype.
+
+       * krb524d.c: Provide daemon prototype if needed.
+
 2001-06-20  Ezra Peisach  <epeisach@mit.edu>
 
        * krb524d.c: Include <krb5/adm_proto.h> for krb5_log_init()
index f6603aec769bc9b274ee6181c8838b24b10f8729..2f57e94a4dc95cde528cac62cf230038a39e823f 100644 (file)
@@ -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 <unistd.h>
+#endif],daemon,1)
 AC_TYPE_SIGNAL
 
 KRB5_BUILD_PROGRAM
index 03c63a54d43504267d50245c5354161358dee1ce..022cde859b330c12888f0210044aad9c49e09ece 100644 (file)
 #include <krb.h>
 #include "krb524.h"
 
+#if defined(NEED_DAEMON_PROTO)
+extern int daemon(int, int);
+#endif
+
 #define TIMEOUT 60
 #define TKT_BUFSIZ 2048
 #define MSGSIZE 8192