From: Ilia Alshanetsky Date: Mon, 22 Dec 2003 16:00:54 +0000 (+0000) Subject: MFH: Define INADDR_NONE for systems that don't have it (apparently solaris) X-Git-Tag: php-4.3.5RC1~33 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ba634aacd40d6a0347b92f5c1c67bc2c04cd0e5c;p=php MFH: Define INADDR_NONE for systems that don't have it (apparently solaris) --- diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index f22ae272dd..c5fe60149e 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -83,6 +83,10 @@ # include "win32/unistd.h" #endif +#ifndef INADDR_NONE +#define INADDR_NONE ((unsigned long int) -1) +#endif + #include "zend_globals.h" #include "php_globals.h" #include "SAPI.h"