From 6b152d04e55e9d23fc2dd0c948929ad5e2bd4c05 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 30 Aug 2006 12:55:12 +0000 Subject: [PATCH] Define INADDR_NONE to -1 if undefined --- src/tcpip.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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")); -- 1.7.10.4