summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main/php.h2
-rw-r--r--sapi/cgi/cgi_main.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/main/php.h b/main/php.h
index b8b107ca05..a4394337a7 100644
--- a/main/php.h
+++ b/main/php.h
@@ -415,7 +415,7 @@ END_EXTERN_C()
*/
#ifndef XtOffset
-#if defined(CRAY) || (defined(__arm) && !defined(LINUX))
+#if defined(CRAY) || (defined(__arm) && !(defined(LINUX) || defined(__riscos__)))
#ifdef __STDC__
#define XtOffset(p_type, field) _Offsetof(p_type, field)
#else
diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c
index cbba5c873f..8fe28acf04 100644
--- a/sapi/cgi/cgi_main.c
+++ b/sapi/cgi/cgi_main.c
@@ -69,6 +69,7 @@
#ifdef __riscos__
#include <unixlib/local.h>
+int __riscosify_control = __RISCOSIFY_STRICT_UNIX_SPECS;
#endif
#include "zend_compile.h"