summaryrefslogtreecommitdiff
path: root/main/streams/xp_socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/streams/xp_socket.c')
-rw-r--r--main/streams/xp_socket.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/main/streams/xp_socket.c b/main/streams/xp_socket.c
index 01861701e8..802811d6ee 100644
--- a/main/streams/xp_socket.c
+++ b/main/streams/xp_socket.c
@@ -23,6 +23,10 @@
#include "streams/php_streams_int.h"
#include "php_network.h"
+#if defined(PHP_WIN32) || defined(__riscos__) || defined(NETWARE)
+# undef AF_UNIX
+#endif
+
#if defined(AF_UNIX)
#include <sys/un.h>
#endif
@@ -429,6 +433,7 @@ static int php_tcp_sockop_set_option(php_stream *stream, int option, int value,
return PHP_STREAM_OPTION_RETURN_OK;
default:
/* fall through */
+ ;
}
/* fall through */