summaryrefslogtreecommitdiffstats
path: root/external
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2021-05-24 20:16:45 +0200
committerAndras Timar <andras.timar@collabora.com>2021-05-25 14:43:28 +0200
commit753ae339389daa622cc4a1e926be147b2925165e (patch)
treeacc94fc40e2099b500472450416d519439682382 /external
parentFreeBSD: fix OPENSSL_PLATFORM (diff)
downloadcore-753ae339389daa622cc4a1e926be147b2925165e.tar.gz
core-753ae339389daa622cc4a1e926be147b2925165e.zip
Fix pdfium build on BSD
Change-Id: I30b10e71c120e59d1da7b69728c742afcb4bbe83
Diffstat (limited to 'external')
-rw-r--r--external/pdfium/UnpackedTarball_pdfium.mk1
-rw-r--r--external/pdfium/bsd-time.patch.112
2 files changed, 13 insertions, 0 deletions
diff --git a/external/pdfium/UnpackedTarball_pdfium.mk b/external/pdfium/UnpackedTarball_pdfium.mk
index 8eb17e1ddb59..ae6283b16851 100644
--- a/external/pdfium/UnpackedTarball_pdfium.mk
+++ b/external/pdfium/UnpackedTarball_pdfium.mk
@@ -22,6 +22,7 @@ pdfium_patches += SignatureGetDocMDPPermission.patch.1
pdfium_patches += cg-instead-of-carbon.patch.1
# Android NDK 19 - that is known to work well - does not have 2 defines
pdfium_patches += AndroidNDK19.patch.1
+pdfium_patches += bsd-time.patch.1
# Work around <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94141> "c++20 rewritten operator==
# recursive call mixing friend and external operators for template class" in GCC with
diff --git a/external/pdfium/bsd-time.patch.1 b/external/pdfium/bsd-time.patch.1
new file mode 100644
index 000000000000..7c08071d8d20
--- /dev/null
+++ b/external/pdfium/bsd-time.patch.1
@@ -0,0 +1,12 @@
+diff -ur pdfium.org/core/fxcrt/cfx_datetime.cpp pdfium/core/fxcrt/cfx_datetime.cpp
+--- pdfium.org/core/fxcrt/cfx_datetime.cpp 2021-05-24 18:49:42.500750000 +0200
++++ pdfium/core/fxcrt/cfx_datetime.cpp 2021-05-24 18:50:28.360272000 +0200
+@@ -10,7 +10,7 @@
+ #include "core/fxcrt/fx_system.h"
+
+ #if defined(OS_ANDROID) || defined(OS_LINUX) || defined(OS_CHROMEOS) || \
+- defined(OS_APPLE) || defined(OS_ASMJS)
++ defined(OS_APPLE) || defined(OS_ASMJS) || defined(OS_BSD)
+ #include <sys/time.h>
+ #include <time.h>
+ #endif