summaryrefslogtreecommitdiff
path: root/gethost.c
diff options
context:
space:
mode:
Diffstat (limited to 'gethost.c')
-rw-r--r--gethost.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gethost.c b/gethost.c
index 10f6078..8f77c80 100644
--- a/gethost.c
+++ b/gethost.c
@@ -65,10 +65,13 @@ in this Software without prior written authorization from The Open Group.
const char *
get_hostname (Xauth *auth)
{
+#ifdef TCPCONN
static struct hostent *hp;
int af;
hp = NULL;
+#endif
+
if (auth->address_length == 0)
return "Illegal Address";
#ifdef TCPCONN