From 067b684678a904069a344d8043662f65b620a2e0 Mon Sep 17 00:00:00 2001 From: erg Date: Wed, 4 May 2005 17:00:44 +0000 Subject: [PATCH] Need if using gethostname(). --- lib/gvc/gvhostname.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/gvc/gvhostname.c b/lib/gvc/gvhostname.c index 75eb2ac3d..ab65c8ebb 100644 --- a/lib/gvc/gvhostname.c +++ b/lib/gvc/gvhostname.c @@ -27,6 +27,9 @@ #ifdef HAVE_UNAME #include #endif +#ifdef HAVE_UNISTD_H +#include +#endif /* * There is no portable macro for the maximum length -- 2.40.0