aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libvmaf/android-off_t.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/libvmaf/android-off_t.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/libvmaf/android-off_t.patch')
-rw-r--r--vcpkg/ports/libvmaf/android-off_t.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/vcpkg/ports/libvmaf/android-off_t.patch b/vcpkg/ports/libvmaf/android-off_t.patch
new file mode 100644
index 0000000..4b70e77
--- /dev/null
+++ b/vcpkg/ports/libvmaf/android-off_t.patch
@@ -0,0 +1,16 @@
+--- a/libvmaf/src/meson.build
++++ b/libvmaf/src/meson.build
+@@ -13,6 +13,13 @@ if cc.get_id() != 'msvc'
+ '-pedantic',
+ '-DOC_NEW_STYLE_INCLUDES',
+ ]
++ # If the target is Android, define _LIBCPP_HAS_NO_OFF_T_FUNCTIONS unconditionally
++ # to work around the fact that meson always defines _FILE_OFFSET_BITS=64, which
++ # causes issues for API levels below 24 in 32-bit architectures.
++ # See https://github.com/mesonbuild/meson/issues/3049 for more details.
++ if target_machine.system() == 'android'
++ vmaf_cflags_common += '-D_LIBCPP_HAS_NO_OFF_T_FUNCTIONS'
++ endif
+ else
+ vmaf_cflags_common = [
+ '-wd4028', # parameter different from declaration