From 05c987eda3b73eec74801426f59b7b93e7fc4ad9 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Mon, 30 Mar 1998 18:51:04 +0000 Subject: [PATCH] * 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 --- src/tests/resolve/ChangeLog | 5 +++++ src/tests/resolve/resolve.c | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) 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) { -- 2.26.2