From: Adam Dickmeiss Date: Wed, 30 Aug 2006 12:55:12 +0000 (+0000) Subject: Define INADDR_NONE to -1 if undefined X-Git-Tag: YAZ.2.1.28~13 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=6b152d04e55e9d23fc2dd0c948929ad5e2bd4c05;p=yaz-moved-to-github.git Define INADDR_NONE to -1 if undefined --- diff --git a/src/tcpip.c b/src/tcpip.c index f232601..6d69d2f 100644 --- a/src/tcpip.c +++ b/src/tcpip.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: tcpip.c,v 1.21 2006-08-30 12:47:23 adam Exp $ + * $Id: tcpip.c,v 1.22 2006-08-30 12:55:12 adam Exp $ */ /** * \file tcpip.c @@ -249,11 +249,15 @@ int tcpip_strtoaddr_ex(const char *str, struct sockaddr_in *add, char *p, buf[512]; short int port = default_port; #ifdef WIN32 - unsigned long tmpadd; + unsigned long tmpadd; #else in_addr_t tmpadd; #endif +#ifndef INADDR_NONE +#define INADDR_NONE -1 +#endif + if (!tcpip_init ()) return 0; TRC(fprintf(stderr, "tcpip_strtoaddress: %s\n", str ? str : "NULL"));