diff options
-rw-r--r-- | Xtranssock.c | 4 |
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])) { |