summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2021-01-07 08:57:22 +0100
committerStephan Bergmann <sbergman@redhat.com>2021-01-07 10:06:16 +0100
commita20a464bcfe6408ddd6c66ac43e9d25d3e530cd3 (patch)
tree37eb3111d048d385df3015ea0c624bce4014e764
parent6bb6eb1692d7dd432103d0e7278534390084caf6 (diff)
external/libebook: Missing include (for std::min)
...as reported now by various Windows builders after e0f1b5bd94550835c639efda4e4c9a801c78dbe9 "Upgrade external/boost to latest Boost 1.75.0" Change-Id: Ib1f4ea2ca05003b24347c7233bd06cef7d4c955f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108920 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r--external/libebook/UnpackedTarball_libebook.mk3
-rw-r--r--external/libebook/include.patch10
2 files changed, 13 insertions, 0 deletions
diff --git a/external/libebook/UnpackedTarball_libebook.mk b/external/libebook/UnpackedTarball_libebook.mk
index 4a85ee5093be..4a6dd2bce5ce 100644
--- a/external/libebook/UnpackedTarball_libebook.mk
+++ b/external/libebook/UnpackedTarball_libebook.mk
@@ -13,8 +13,11 @@ $(eval $(call gb_UnpackedTarball_set_tarball,libebook,$(EBOOK_TARBALL)))
$(eval $(call gb_UnpackedTarball_update_autoconf_configs,libebook))
+$(eval $(call gb_UnpackedTarball_set_patchlevel,libebook,0))
+
$(eval $(call gb_UnpackedTarball_add_patches,libebook, \
external/libebook/libebook-no-icu-boolean.patch.1 \
+ external/libebook/include.patch \
))
# vim: set noet sw=4 ts=4:
diff --git a/external/libebook/include.patch b/external/libebook/include.patch
new file mode 100644
index 000000000000..fe6d8bdbe33c
--- /dev/null
+++ b/external/libebook/include.patch
@@ -0,0 +1,10 @@
+--- src/lib/BBeBCollector.cpp
++++ src/lib/BBeBCollector.cpp
+@@ -7,6 +7,7 @@
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
++#include <algorithm>
+ #include <unordered_map>
+
+ #include <librevenge/librevenge.h>