summaryrefslogtreecommitdiff
path: root/Xtranssock.c
diff options
context:
space:
mode:
Diffstat (limited to 'Xtranssock.c')
-rw-r--r--Xtranssock.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Xtranssock.c b/Xtranssock.c
index 82d8255..93ecc45 100644
--- a/Xtranssock.c
+++ b/Xtranssock.c
@@ -277,6 +277,10 @@ static int TRANS(SocketINETClose) (XtransConnInfo ciptr);
#define PORTBUFSIZE 32
+#ifndef MAXHOSTNAMELEN
+#define MAXHOSTNAMELEN 255
+#endif
+
/*
* This provides compatibility for apps linked against system libraries
* that don't have IPv6 support.