From: Ken Raeburn Date: Tue, 5 Jun 2001 23:57:17 +0000 (+0000) Subject: * configure.in: Check for unistd.h. X-Git-Tag: krb5-1.3-alpha1~1480 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=82a9806d4b9ba0c3d7a0c823fd92cc6d4c42535a;p=krb5.git * 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 --- 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