* configure.in: Check for unistd.h.
authorKen Raeburn <raeburn@mit.edu>
Tue, 5 Jun 2001 23:57:17 +0000 (23:57 +0000)
committerKen Raeburn <raeburn@mit.edu>
Tue, 5 Jun 2001 23:57:17 +0000 (23:57 +0000)
* 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
src/krb524/configure.in
src/krb524/k524init.c

index ab731f086067b9286265acdd9fe606325a8b1e7b..ffd569fd33cfc5a59ce960b324295aa97a3c357b 100644 (file)
@@ -1,5 +1,8 @@
 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
index eca1642cdb0c58a2054e5f64ca13aa079ed043cc..f6603aec769bc9b274ee6181c8838b24b10f8729 100644 (file)
@@ -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
index 307be1a4f0275b805c8a7f49f05f3b938aaf9a1f..746fbb9381d281f111b4f01a50b22e8e9f11b426 100644 (file)
@@ -24,7 +24,9 @@
 #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>