aboutsummaryrefslogtreecommitdiffstats
path: root/main/kamailio/s390x-big-endian.patch
diff options
context:
space:
mode:
authorTuan M. Hoang <tmhoang@flatglobe.org>2017-04-19 01:12:20 -0400
committerNatanael Copa <ncopa@alpinelinux.org>2017-04-20 15:31:03 +0000
commit2c47756b47d9aa0775033eb0529f5c5243fc2cef (patch)
tree6dcf795ba45f2a859cac2a98fe9fd71f57bed934 /main/kamailio/s390x-big-endian.patch
parentd04576fe9606c0f1ad88b2fcf22b7d23980e5728 (diff)
downloadaports-2c47756b47d9aa0775033eb0529f5c5243fc2cef.tar.bz2
aports-2c47756b47d9aa0775033eb0529f5c5243fc2cef.tar.xz
main/kamailio: allow big endian on s390x
Ref : https://github.com/kamailio/kamailio/pull/1068
Diffstat (limited to 'main/kamailio/s390x-big-endian.patch')
-rw-r--r--main/kamailio/s390x-big-endian.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/main/kamailio/s390x-big-endian.patch b/main/kamailio/s390x-big-endian.patch
new file mode 100644
index 0000000000..d7d9defba3
--- /dev/null
+++ b/main/kamailio/s390x-big-endian.patch
@@ -0,0 +1,24 @@
+diff --git a/src/modules/acc/diam_message.h b/src/modules/acc/diam_message.h
+index 35ad2d9..e4faaf0 100644
+--- a/src/modules/acc/diam_message.h
++++ b/src/modules/acc/diam_message.h
+@@ -74,7 +74,6 @@
+ #define ST_MSG_CODE 0x13010000
+ #define MASK_MSG_CODE 0xffffff00
+ #else
+- #error BIG endian detected!!
+ #define AS_MSG_CODE 0x00000112
+ #define AC_MSG_CODE 0x0000010f
+ #define CE_MSG_CODE 0x00000101
+diff --git a/src/modules/cdp/diameter.h b/src/modules/cdp/diameter.h
+index 38115a9..2be2525 100644
+--- a/src/modules/cdp/diameter.h
++++ b/src/modules/cdp/diameter.h
+@@ -115,7 +115,6 @@
+ #define ST_MSG_CODE 0x13010000
+ #define MASK_MSG_CODE 0xffffff00
+ #else
+- #error BIG endian detected!!
+ #define AS_MSG_CODE 0x00000112
+ #define AC_MSG_CODE 0x0000010f
+ #define CE_MSG_CODE 0x00000101