From 82a9806d4b9ba0c3d7a0c823fd92cc6d4c42535a Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Tue, 5 Jun 2001 23:57:17 +0000 Subject: [PATCH] * configure.in: Check for unistd.h. * 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 --- src/krb524/ChangeLog | 3 +++ src/krb524/configure.in | 2 +- src/krb524/k524init.c | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/krb524/ChangeLog b/src/krb524/ChangeLog index ab731f086..ffd569fd3 100644 --- a/src/krb524/ChangeLog +++ b/src/krb524/ChangeLog @@ -1,5 +1,8 @@ 2001-06-05 Ken Raeburn + * 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 diff --git a/src/krb524/configure.in b/src/krb524/configure.in index eca1642cd..f6603aec7 100644 --- a/src/krb524/configure.in +++ b/src/krb524/configure.in @@ -4,7 +4,7 @@ AC_PROG_INSTALL 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 diff --git a/src/krb524/k524init.c b/src/krb524/k524init.c index 307be1a4f..746fbb938 100644 --- a/src/krb524/k524init.c +++ b/src/krb524/k524init.c @@ -24,7 +24,9 @@ #include "com_err.h" #include +#ifdef HAVE_UNISTD_H #include +#endif #include #include #include -- 2.26.2