# [PATCH] Fix compiling for RISC OS

- Thread: https://externals.io/message/22235
- Original archive: https://news-web.php.net/php.internals/22235
- Started by Alex Waugh on 2006-03-07T22:51:54+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #22235 — Alex Waugh — 2006-03-07T22:51:54+00:00

URL: https://externals.io/message/22235#22235

Hi

Could someone with Zend karma commit this to trunk and 5.1 branch please
to fix things for compiling for RISC OS.

Thanks

Alex


Index: Zend/zend_ini.h
===================================================================
RCS file: /repository/ZendEngine2/zend_ini.h,v
retrieving revision 1.37
diff -u -r1.37 zend_ini.h
--- Zend/zend_ini.h	21 Feb 2006 08:00:39 -0000	1.37
+++ Zend/zend_ini.h	7 Mar 2006 22:41:41 -0000
@@ -28,7 +28,7 @@
 #define ZEND_INI_ALL (ZEND_INI_USER|ZEND_INI_PERDIR|ZEND_INI_SYSTEM)
 
 #ifndef XtOffsetOf
-# 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
Index: Zend/zend_strtod.c
===================================================================
RCS file: /repository/ZendEngine2/zend_strtod.c,v
retrieving revision 1.21
diff -u -r1.21 zend_strtod.c
--- Zend/zend_strtod.c	21 Feb 2006 08:00:39 -0000	1.21
+++ Zend/zend_strtod.c	7 Mar 2006 22:41:42 -0000
@@ -132,6 +132,7 @@
  * but the word order is big endian.
  */
 #define IEEE_BIG_ENDIAN
+#undef IEEE_LITTLE_ENDIAN
 #endif
 
 #ifdef __vax__

---

## #22520 — Alex Waugh — 2006-03-18T12:19:00+00:00

URL: https://externals.io/message/22235#22520 · In reply to: #22235

Alex Waugh <alexwaugh@php.net> wrote:

> Hi
> 
> Could someone with Zend karma commit this to trunk and 5.1 branch please
> to fix things for compiling for RISC OS.

Anyone?


Thanks

Alex



Index: Zend/zend_ini.h
===================================================================
RCS file: /repository/ZendEngine2/zend_ini.h,v
retrieving revision 1.37
diff -u -r1.37 zend_ini.h
--- Zend/zend_ini.h	21 Feb 2006 08:00:39 -0000	1.37
+++ Zend/zend_ini.h	7 Mar 2006 22:41:41 -0000
@@ -28,7 +28,7 @@
 #define ZEND_INI_ALL (ZEND_INI_USER|ZEND_INI_PERDIR|ZEND_INI_SYSTEM)
 
 #ifndef XtOffsetOf
-# 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
Index: Zend/zend_strtod.c
===================================================================
RCS file: /repository/ZendEngine2/zend_strtod.c,v
retrieving revision 1.21
diff -u -r1.21 zend_strtod.c
--- Zend/zend_strtod.c	21 Feb 2006 08:00:39 -0000	1.21
+++ Zend/zend_strtod.c	7 Mar 2006 22:41:42 -0000
@@ -132,6 +132,7 @@
  * but the word order is big endian.
  */
 #define IEEE_BIG_ENDIAN
+#undef IEEE_LITTLE_ENDIAN
 #endif
 
 #ifdef __vax__
