summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <Alan.Coopersmith@sun.com>2005-06-22 22:36:51 +0000
committerAlan Coopersmith <Alan.Coopersmith@sun.com>2005-06-22 22:36:51 +0000
commit57aac0006e27624a41f04c5d0c458b9f0108a084 (patch)
treebb20b2cf149d0df61680f1548ffcdca0ceffe5ed
parentf5a6a188407cec6e567070d192aac2db72cacd92 (diff)
Add the rest of my patch from bugzilla #1605 to define INADDR_NONE onXORG-6_8_99_13
platforms that don't define it in the system headers.
-rw-r--r--Xtranssock.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Xtranssock.c b/Xtranssock.c
index 18d0a10..61cb8b1 100644
--- a/Xtranssock.c
+++ b/Xtranssock.c
@@ -1608,6 +1608,10 @@ TRANS(SocketINETConnect) (XtransConnInfo ciptr, char *host, char *port)
* fill in sin_addr
*/
+#ifndef INADDR_NONE
+#define INADDR_NONE ((in_addr_t) 0xffffffff)
+#endif
+
/* check for ww.xx.yy.zz host string */
if (isascii (host[0]) && isdigit (host[0])) {