summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2003-12-22 16:00:54 +0000
committerIlia Alshanetsky <iliaa@php.net>2003-12-22 16:00:54 +0000
commitba634aacd40d6a0347b92f5c1c67bc2c04cd0e5c (patch)
treef8a3829586ea00526f34c6ed80dc12d6be56392b
parent437a1e90c945ce9cd542c9b81e702b8ecbabe3b5 (diff)
downloadphp-git-ba634aacd40d6a0347b92f5c1c67bc2c04cd0e5c.tar.gz
MFH: Define INADDR_NONE for systems that don't have it (apparently solaris)
-rw-r--r--ext/standard/basic_functions.c4
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"