summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <Alan.Coopersmith@sun.com>2005-10-02 21:01:35 +0000
committerAlan Coopersmith <Alan.Coopersmith@sun.com>2005-10-02 21:01:35 +0000
commite41835b4b2fe03d8a1997bd8e8eabab2a94bccd5 (patch)
treecbbd4ea29324aec21472e63f5f50ca6480d60e35
parent4683f28f0c9d1a1ee0338a32011219ed1fb3c565 (diff)
//bugs.freedesktop.org/show_bug.cgi?id=4256> Patch #3046
<https://bugs.freedesktop.org/attachment.cgi?id=3046> Define MAXHOSTNAMELEN if platform doesn't (Michael Banck)
-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.