* resolve.c: Include unistd.h if present on system (for
authorEzra Peisach <epeisach@mit.edu>
Mon, 30 Mar 1998 18:51:04 +0000 (18:51 +0000)
committerEzra Peisach <epeisach@mit.edu>
Mon, 30 Mar 1998 18:51:04 +0000 (18:51 +0000)
        gethostname prototype).

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10505 dc483132-0cff-0310-8789-dd5450dbe970

src/tests/resolve/ChangeLog
src/tests/resolve/resolve.c

index 40fb4e1e3faa04e044bcae26db26b82c8d7e59e0..d4adc66759d026490aa10fd4b923a9220b3cc6a5 100644 (file)
@@ -1,3 +1,8 @@
+Mon Mar 30 13:50:15 1998  Ezra Peisach  <epeisach@kangaroo.mit.edu>
+
+       * resolve.c: Include unistd.h if present on system (for
+               gethostname prototype). 
+
 Wed Feb 18 16:30:37 1998  Tom Yu  <tlyu@mit.edu>
 
        * Makefile.in: Remove trailing slash from thisconfigdir.  Fix up
index dec26ed81ef3742238a2f2806d9808300d7a323d..39020e54b6cf0ccd62a1fbc732fa75416c518f03 100644 (file)
@@ -57,6 +57,10 @@ char *strchr();
 #include <sys/socket.h>
 #endif
 
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
 #include <netdb.h>
 
 int
@@ -69,7 +73,6 @@ main(argc, argv)
        char addrcopy[4];
        struct hostent *host;
        int quiet = 0;
-       int err;
 
        argc--; argv++;
        while (argc) {