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

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

src/kdc/ChangeLog
src/kdc/configure.in
src/kdc/main.c

index 54b7a15a93c4fb44451372066f7336e5d487db2c..b0954044434ac64b53584dca0f210afe41b6ab9b 100644 (file)
@@ -1,3 +1,9 @@
+2001-06-21  Ezra Peisach  <epeisach@mit.edu>
+
+       * configure.in: Test for daemon prototype.
+       
+       * main.c: Provide daemon prototype if needed.
+
 2001-06-21  Ezra Peisach  <epeisach@mit.edu>
 
        * configure.in: Use optional argument to KRB5_NEED_PROTO so test
index 8d0dd6b4779bd05c6b71ef0353411bd0fe5542f0..0974f3e0e0477b9aff62d63ec97daae42fa0b63d 100644 (file)
@@ -8,6 +8,11 @@ KRB5_NEED_PROTO([#include <string.h>
 #include <unistd.h>
 #endif
 ],swab,1)
+dnl
+KRB5_NEED_PROTO([#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif],daemon,1)
+dnl
 AC_PROG_AWK
 KRB5_AC_INET6
 KRB5_SOCKADDR_SA_LEN
index 34565978e04b7a980c4c7769bc765b0387145935..77340723ad584091e8c49e9e740f36ed1946930e 100644 (file)
 #include <des.h>
 #endif
 
+#if defined(NEED_DAEMON_PROTO)
+extern int daemon(int, int);
+#endif
+
 kdc_realm_t *find_realm_data (char *, krb5_ui_4);
 
 void usage (char *);