aboutsummaryrefslogtreecommitdiffstats
path: root/community/evince/evince-lzmasdk-s390x.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/evince/evince-lzmasdk-s390x.patch')
-rw-r--r--community/evince/evince-lzmasdk-s390x.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/community/evince/evince-lzmasdk-s390x.patch b/community/evince/evince-lzmasdk-s390x.patch
new file mode 100644
index 0000000000..618d1d0d5f
--- /dev/null
+++ b/community/evince/evince-lzmasdk-s390x.patch
@@ -0,0 +1,17 @@
+MY_CPU_BE expands to an empty token sequence, so defined (MY_CPU_BE)
+has to be used in this context. This code is only reachable for
+s390x, ppc64 sets MY_CPU_NAME earlier.
+
+diff -ur evince-3.25.4.orig/cut-n-paste/unarr/lzmasdk/CpuArch.h evince-3.25.4/cut-n-paste/unarr/lzmasdk/CpuArch.h
+--- evince-3.25.4.orig/cut-n-paste/unarr/lzmasdk/CpuArch.h 2017-07-22 07:58:23.000000000 +0200
++++ evince-3.25.4/cut-n-paste/unarr/lzmasdk/CpuArch.h 2017-07-31 13:32:33.893245858 +0200
+@@ -174,7 +174,7 @@
+ #ifndef MY_CPU_NAME
+ #ifdef MY_CPU_LE
+ #define MY_CPU_NAME "LE"
+- #elif MY_CPU_BE
++ #elif defined (MY_CPU_BE)
+ #define MY_CPU_NAME "BE"
+ #else
+ /*
+Only in evince-3.25.4/cut-n-paste/unarr/lzmasdk: CpuArch.h~