summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Waugh <alexwaugh@php.net>2006-03-07 22:37:18 +0000
committerAlex Waugh <alexwaugh@php.net>2006-03-07 22:37:18 +0000
commitb7d6d705f1e471544418cf8febb62943ece9e8ce (patch)
tree6b34ba03c23367618e8063996e5d51e8447c5b9d
parentad777e3c78cd6927c090ae91535bebd1e68fca11 (diff)
downloadphp-git-b7d6d705f1e471544418cf8febb62943ece9e8ce.tar.gz
Fix for RISC OS
-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"