Obsolete raptor 1.4 API
[oi-userland.git] / components / desktop / libreoffice / patches / 02-pdfium.patch
blob197a5be050e5ebeee7161648e83337bba3100445
1 diff -urN libreoffice-6.4.2.2/external/pdfium-1/illumos.patch libreoffice-6.4.2.2/external/pdfium/illumos.patch
2 --- libreoffice-6.4.2.2/external/pdfium-1/illumos.patch 1970-01-01 03:00:00.000000000 +0000
3 +++ libreoffice-6.4.2.2/external/pdfium/illumos.patch 2020-03-14 13:57:43.236983250 +0000
4 @@ -0,0 +1,22 @@
5 +--- third_party/base/allocator/partition_allocator/page_allocator_internals_posix.h.1 2020-03-14 13:50:31.561072287 +0000
6 ++++ third_party/base/allocator/partition_allocator/page_allocator_internals_posix.h 2020-03-14 13:50:51.205996015 +0000
7 +@@ -184,7 +184,7 @@
8 + // performance benefits unclear.
9 + //
10 + // Therefore, we just do the simple thing: MADV_DONTNEED.
11 +- CHECK(!madvise(address, length, MADV_DONTNEED));
12 ++ CHECK(!posix_madvise(address, length, POSIX_MADV_DONTNEED));
13 + #endif
14 + }
16 +--- core/fxcrt/cfx_fileaccess_posix.h.1 2020-03-14 14:22:47.915686341 +0000
17 ++++ core/fxcrt/cfx_fileaccess_posix.h 2020-03-14 14:23:12.768876421 +0000
18 +@@ -12,7 +12,7 @@
19 + #include "core/fxcrt/fx_system.h"
21 + #if _FX_PLATFORM_ != _FX_PLATFORM_LINUX_ && !defined(OS_MACOSX) && \
22 +- !defined(OS_ANDROID)
23 ++ !defined(OS_ANDROID) && !defined(OS_SOLARIS)
24 + #error "Included on the wrong platform"
25 + #endif
27 --- core-fdc87dd56548622e13353b4cf9864232ee0110fb/external/pdfium/UnpackedTarball_pdfium.mk.~1~ 2023-12-14 18:35:52.900928088 -0500
28 +++ core-fdc87dd56548622e13353b4cf9864232ee0110fb/external/pdfium/UnpackedTarball_pdfium.mk 2023-12-14 18:55:33.458848712 -0500
29 @@ -8,6 +8,8 @@
32 pdfium_patches :=
33 +# illumos-specific fixes
34 +pdfium_patches += illumos.patch
35 # Fixes build on our baseline.
36 pdfium_patches += build.patch.1
37 # Avoids Windows 8 build dependency.