* k524init.c: Only include unistd.h if it's available.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13275
dc483132-0cff-0310-8789-
dd5450dbe970
2001-06-05 Ken Raeburn <raeburn@mit.edu>
+ * configure.in: Check for unistd.h.
+ * k524init.c: Only include unistd.h if it's available.
+
* krb524d.c: Include stdarg.h.
(main): Accept new argument -p to indicate port number to use;
fall back to KRB524_SERVICE and then KRB524_PORT. In error
KRB5_BUILD_LIBRARY_STATIC
KRB5_BUILD_LIBOBJS
AC_PROG_AWK
-AC_CHECK_HEADERS(sys/select.h) dnl
+AC_CHECK_HEADERS(sys/select.h unistd.h) dnl
AC_TYPE_SIGNAL
KRB5_BUILD_PROGRAM
#include "com_err.h"
#include <stdio.h>
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
#include <string.h>
#include <signal.h>
#include <sys/types.h>