summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/sockets/multicast.c4
-rw-r--r--ext/sockets/php_sockets.h4
-rw-r--r--ext/sockets/sockets.c4
3 files changed, 4 insertions, 8 deletions
diff --git a/ext/sockets/multicast.c b/ext/sockets/multicast.c
index 94f845d662..7466c6266e 100644
--- a/ext/sockets/multicast.c
+++ b/ext/sockets/multicast.c
@@ -24,8 +24,6 @@
#include "php.h"
-#if HAVE_SOCKETS
-
#include "php_network.h"
#ifdef PHP_WIN32
# include "windows_common.h"
@@ -836,5 +834,3 @@ err:
return FAILURE;
}
#endif
-
-#endif /* HAVE_SOCKETS */
diff --git a/ext/sockets/php_sockets.h b/ext/sockets/php_sockets.h
index dd2b9933f6..17abf95a19 100644
--- a/ext/sockets/php_sockets.h
+++ b/ext/sockets/php_sockets.h
@@ -24,6 +24,10 @@
/* $Id$ */
+#if HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#if HAVE_SOCKETS
#include <php.h>
diff --git a/ext/sockets/sockets.c b/ext/sockets/sockets.c
index 7f5d49e76c..5ecc014596 100644
--- a/ext/sockets/sockets.c
+++ b/ext/sockets/sockets.c
@@ -28,8 +28,6 @@
#include "php.h"
-#if HAVE_SOCKETS
-
#include "php_network.h"
#include "ext/standard/file.h"
#include "ext/standard/info.h"
@@ -2278,8 +2276,6 @@ PHP_FUNCTION(socket_import_stream)
}
/* }}} */
-#endif
-
/*
* Local variables:
* tab-width: 4