* configure.in: Test if prototype for daemon necessary.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13496
dc483132-0cff-0310-8789-
dd5450dbe970
+2001-06-22 Ezra Peisach <epeisach@mit.edu>
+
+ * krlogind.c: Provide daemon prototype if needed.
+
+ * configure.in: Test if prototype for daemon necessary.
+
2001-06-21 Ezra Peisach <epeisach@mit.edu>
* login.c: Much cleanup to reduce globals and shadowing.
AC_CHECK_HEADERS(unistd.h stdlib.h string.h sys/filio.h sys/sockio.h sys/label.h sys/tty.h ttyent.h lastlog.h sys/select.h sys/ptyvar.h utmp.h sys/time.h krb4-proto.h sys/ioctl_compat.h paths.h arpa/nameser.h)
AC_HEADER_STDARG
AC_REPLACE_FUNCS(getdtablesize)
+dnl
+KRB5_NEED_PROTO([#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif],daemon,1)
+dnl
KRB5_SIGTYPE
CHECK_SIGNALS
CHECK_SETJMP
static int Pfd;
+#if defined(NEED_DAEMON_PROTO)
+extern int daemon(int, int);
+#endif
+
#if (defined(_AIX) && defined(i386)) || defined(ibm032) || (defined(vax) && !defined(ultrix)) || (defined(SunOS) && SunOS > 40) || defined(solaris20)
#define VHANG_FIRST
#endif