From: Ezra Peisach Date: Mon, 30 Mar 1998 18:51:04 +0000 (+0000) Subject: * resolve.c: Include unistd.h if present on system (for X-Git-Tag: krb5-1.1-beta1~768 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=05c987eda3b73eec74801426f59b7b93e7fc4ad9;p=krb5.git * resolve.c: Include unistd.h if present on system (for gethostname prototype). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10505 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/tests/resolve/ChangeLog b/src/tests/resolve/ChangeLog index 40fb4e1e3..d4adc6675 100644 --- a/src/tests/resolve/ChangeLog +++ b/src/tests/resolve/ChangeLog @@ -1,3 +1,8 @@ +Mon Mar 30 13:50:15 1998 Ezra Peisach + + * resolve.c: Include unistd.h if present on system (for + gethostname prototype). + Wed Feb 18 16:30:37 1998 Tom Yu * Makefile.in: Remove trailing slash from thisconfigdir. Fix up diff --git a/src/tests/resolve/resolve.c b/src/tests/resolve/resolve.c index dec26ed81..39020e54b 100644 --- a/src/tests/resolve/resolve.c +++ b/src/tests/resolve/resolve.c @@ -57,6 +57,10 @@ char *strchr(); #include #endif +#ifdef HAVE_UNISTD_H +#include +#endif + #include int @@ -69,7 +73,6 @@ main(argc, argv) char addrcopy[4]; struct hostent *host; int quiet = 0; - int err; argc--; argv++; while (argc) {