aboutsummaryrefslogtreecommitdiffstats
path: root/community/dynamips/s390x-support.patch
diff options
context:
space:
mode:
authorTuan M. Hoang <tmhoang@flatglobe.org>2017-04-27 00:12:04 -0400
committerTimo Teräs <timo.teras@iki.fi>2017-04-27 09:11:53 +0300
commitb9d5d9df5a7d56c14b6a56555490b1eab3cd2ac5 (patch)
treec148c16f14e9747e1645ec124c9a4a7c3811d5e7 /community/dynamips/s390x-support.patch
parent481c91daf2b9061163fa84d6fe497f555e5578cc (diff)
downloadaports-b9d5d9df5a7d56c14b6a56555490b1eab3cd2ac5.tar.bz2
aports-b9d5d9df5a7d56c14b6a56555490b1eab3cd2ac5.tar.xz
community/dynamips: add s390x support
Diffstat (limited to 'community/dynamips/s390x-support.patch')
-rw-r--r--community/dynamips/s390x-support.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/community/dynamips/s390x-support.patch b/community/dynamips/s390x-support.patch
new file mode 100644
index 0000000000..529fe9a65b
--- /dev/null
+++ b/community/dynamips/s390x-support.patch
@@ -0,0 +1,13 @@
+diff --git a/common/dynamips_common.h b/common/dynamips_common.h
+index 9c20f38..0c8ca2c 100644
+--- a/common/dynamips_common.h
++++ b/common/dynamips_common.h
+@@ -50,7 +50,7 @@
+ #define ARCH_BIG_ENDIAN 0x4321
+ #define ARCH_LITTLE_ENDIAN 0x1234
+
+-#if defined(PPC) || defined(__powerpc__) || defined(__ppc__)
++#if defined(PPC) || defined(__powerpc__) || defined(__ppc__) || defined(__s390x__)
+ #define ARCH_BYTE_ORDER ARCH_BIG_ENDIAN
+ #elif defined(__sparc) || defined(__sparc__)
+ #define ARCH_BYTE_ORDER ARCH_BIG_ENDIAN