summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2003-12-22 16:00:52 +0000
committerIlia Alshanetsky <iliaa@php.net>2003-12-22 16:00:52 +0000
commit1a53f3c5e092a8b1f0c6e7e5deba3a0728954629 (patch)
tree71cb262087283ab796b251a034fe928e7a0f81bf
parent57b7eb9dc3670ba5e7b4b146dce15b3838d6a0f4 (diff)
downloadphp-git-1a53f3c5e092a8b1f0c6e7e5deba3a0728954629.tar.gz
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 96a5e74ab4..3850c48803 100644
--- a/ext/standard/basic_functions.c
+++ b/ext/standard/basic_functions.c
@@ -92,6 +92,10 @@ typedef struct yy_buffer_state *YY_BUFFER_STATE;
# 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"