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