summaryrefslogtreecommitdiff
path: root/ext/sockets
diff options
context:
space:
mode:
authorJon Parise <jon@php.net>2002-01-27 06:55:10 +0000
committerJon Parise <jon@php.net>2002-01-27 06:55:10 +0000
commitd7523c883b73e185c9dc9bd09c18d645ec4740f7 (patch)
tree2e2f74f2d084afc444abe40902c06d4c6b186352 /ext/sockets
parent0d59ff42d4ffb5fb994703aa4508f2d170110c33 (diff)
downloadphp-git-d7523c883b73e185c9dc9bd09c18d645ec4740f7.tar.gz
Because php_network.h includes <sys/socket.h>, it must be included after
_XPG4_2 is defined. This fixes the build under Solaris 8.
Diffstat (limited to 'ext/sockets')
-rw-r--r--ext/sockets/sockets.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/sockets/sockets.c b/ext/sockets/sockets.c
index cd6f827dff..5d3f16dd25 100644
--- a/ext/sockets/sockets.c
+++ b/ext/sockets/sockets.c
@@ -26,7 +26,6 @@
#endif
#include "php.h"
-#include "php_network.h"
#if HAVE_SOCKETS
@@ -34,7 +33,7 @@
#define _XPG4_2
#define __EXTENSIONS__
-
+#include "php_network.h"
#include "ext/standard/info.h"
#include "php_ini.h"