* main.c: Provide daemon prototype if needed.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13456
dc483132-0cff-0310-8789-
dd5450dbe970
+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
#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
#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 *);