summaryrefslogtreecommitdiffstats
path: root/debian/patches/0003-gcc-6.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/0003-gcc-6.patch')
-rw-r--r--debian/patches/0003-gcc-6.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/debian/patches/0003-gcc-6.patch b/debian/patches/0003-gcc-6.patch
new file mode 100644
index 0000000..a03be95
--- /dev/null
+++ b/debian/patches/0003-gcc-6.patch
@@ -0,0 +1,14 @@
+Origin: https://gitlab.archlinux.org/archlinux/packaging/packages/fbreader/-/blob/0.99.4-12/fbreader-gcc6.patch
+Subject: Fix build with gcc 6 or later
+---
+--- a/fbreader/src/formats/doc/OleStorage.cpp.orig 2012-11-30 13:41:25.000000000 +0100
++++ b/fbreader/src/formats/doc/OleStorage.cpp 2016-08-31 17:23:18.232536401 +0200
+@@ -59,7 +59,7 @@
+ clear();
+ return false;
+ }
+- static const char OLE_SIGN[] = {0xD0, 0xCF, 0x11, 0xE0, 0xA1, 0xB1, 0x1A, 0xE1, 0};
++ static const char OLE_SIGN[] = {(char)0xD0, (char)0xCF, (char)0x11, (char)0xE0, (char)0xA1, (char)0xB1, (char)0x1A, (char)0xE1, 0};
+ if (std::strncmp(oleBuf, OLE_SIGN, 8) != 0) {
+ clear();
+ return false;