summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/standard/fsock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/fsock.c b/ext/standard/fsock.c
index b01c176343..87ac6bcd2e 100644
--- a/ext/standard/fsock.c
+++ b/ext/standard/fsock.c
@@ -52,7 +52,7 @@
#include <arpa/inet.h>
#endif
#endif
-#ifdef PHP_WIN32
+#if defined(PHP_WIN32) || defined(__riscos__)
#undef AF_UNIX
#endif
#if defined(AF_UNIX)