summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/standard/ftp_fopen_wrapper.c2
-rw-r--r--ext/standard/http_fopen_wrapper.c2
-rw-r--r--main/fopen_wrappers.c2
-rw-r--r--main/network.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/ext/standard/ftp_fopen_wrapper.c b/ext/standard/ftp_fopen_wrapper.c
index 281c661419..8149eef5ec 100644
--- a/ext/standard/ftp_fopen_wrapper.c
+++ b/ext/standard/ftp_fopen_wrapper.c
@@ -56,7 +56,7 @@
#endif
#endif
-#ifdef PHP_WIN32
+#if defined(PHP_WIN32) || defined(__riscos__)
#undef AF_UNIX
#endif
diff --git a/ext/standard/http_fopen_wrapper.c b/ext/standard/http_fopen_wrapper.c
index fdd20ce361..bb54225f15 100644
--- a/ext/standard/http_fopen_wrapper.c
+++ b/ext/standard/http_fopen_wrapper.c
@@ -56,7 +56,7 @@
#endif
#endif
-#ifdef PHP_WIN32
+#if defined(PHP_WIN32) || defined(__riscos__)
#undef AF_UNIX
#endif
diff --git a/main/fopen_wrappers.c b/main/fopen_wrappers.c
index d760e2b4b3..2698a81331 100644
--- a/main/fopen_wrappers.c
+++ b/main/fopen_wrappers.c
@@ -73,7 +73,7 @@
#endif
#endif
-#ifdef PHP_WIN32
+#if defined(PHP_WIN32) || defined(__riscos__)
#undef AF_UNIX
#endif
diff --git a/main/network.c b/main/network.c
index dd42fa1ba4..597bcb6901 100644
--- a/main/network.c
+++ b/main/network.c
@@ -55,7 +55,7 @@ int inet_aton(const char *, struct in_addr *);
#include "php_network.h"
-#ifdef PHP_WIN32
+#if defined(PHP_WIN32) || defined(__riscos__)
#undef AF_UNIX
#endif