diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2003-12-22 16:00:54 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2003-12-22 16:00:54 +0000 |
commit | ba634aacd40d6a0347b92f5c1c67bc2c04cd0e5c (patch) | |
tree | f8a3829586ea00526f34c6ed80dc12d6be56392b | |
parent | 437a1e90c945ce9cd542c9b81e702b8ecbabe3b5 (diff) | |
download | php-git-ba634aacd40d6a0347b92f5c1c67bc2c04cd0e5c.tar.gz |
MFH: Define INADDR_NONE for systems that don't have it (apparently solaris)
-rw-r--r-- | ext/standard/basic_functions.c | 4 |
1 files changed, 4 insertions, 0 deletions
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" |