blob: 9884c0a95147150bcbec710e820b6d3eed0f2af5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
Index: external/pdfium/pdfium-bsd.patch
--- external/pdfium/pdfium-bsd.patch.orig 2022-02-15 12:21:30 UTC
+++ external/pdfium/pdfium-bsd.patch
@@ -0,0 +1,33 @@
+--- core/fxcrt/cfx_datetime.cpp.orig Thu Feb 3 17:25:02 2022
++++ core/fxcrt/cfx_datetime.cpp Thu Feb
+@@ -11,7 +11,7 @@
+ #include "third_party/base/check.h"
+
+ #if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \
+- BUILDFLAG(IS_APPLE) || defined(OS_ASMJS)
++ BUILDFLAG(IS_APPLE) || defined(OS_ASMJS) || defined(OS_FREEBSD) || defined(OS_OPENBSD)
+ #include <sys/time.h>
+ #include <time.h>
+ #endif
+--- core/fxge/linux/fx_linux_impl.cpp.orig Thu Feb 3 17:25:22 2022
++++ core/fxge/linux/fx_linux_impl.cpp Thu Feb
+@@ -18,7 +18,7 @@
+ #include "third_party/base/check.h"
+
+ #if !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS) && !defined(OS_FUCHSIA) && \
+- !defined(OS_ASMJS)
++ !defined(OS_ASMJS) && !defined(OS_FREEBSD) && !defined(OS_OPENBSD)
+ #error "Included on the wrong platform"
+ #endif
+
+--- core/fxge/cfx_fontmapper.cpp.orig Thu Feb 3 17:25:53 2022
++++ core/fxge/cfx_fontmapper.cpp Thu Feb
+@@ -155,7 +155,7 @@ constexpr AltFontFamily kAltFontFamilies[] = {
+ {"ForteMT", "Forte"},
+ };
+
+-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || defined(OS_ASMJS)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || defined(OS_ASMJS) || defined(OS_FREEBSD) || defined(OS_OPENBSD)
+ const char kNarrowFamily[] = "LiberationSansNarrow";
+ #elif BUILDFLAG(IS_ANDROID)
+ const char kNarrowFamily[] = "RobotoCondensed";
|