From 13034cc63f76388290111d7d08709f36d87981f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Yhuel?= Date: Tue, 23 Jul 2024 15:32:22 +0200 Subject: [PATCH] meson: fix SIZEOF_OFF_T when cross-compiling with Meson >= 1.3.0 https://mesonbuild.com/Release-notes-for-1-3-0.html#clarify-of-implicitlyincluded-headers-in-clike-compiler-checks With only stddef.h, off_t is not defined, so when cross-compiling SIZEOF_OFF_T is -1. We now use sys/types.h which should define off_t. Part-of: --- subprojects/gst-plugins-good/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-good/meson.build b/subprojects/gst-plugins-good/meson.build index c98fcdd5ac..9ffc28a495 100644 --- a/subprojects/gst-plugins-good/meson.build +++ b/subprojects/gst-plugins-good/meson.build @@ -214,7 +214,7 @@ cdata.set('SIZEOF_INT', cc.sizeof('int')) cdata.set('SIZEOF_LONG', cc.sizeof('long')) cdata.set('SIZEOF_SHORT', cc.sizeof('short')) cdata.set('SIZEOF_VOIDP', cc.sizeof('void*')) -cdata.set('SIZEOF_OFF_T', cc.sizeof('off_t')) +cdata.set('SIZEOF_OFF_T', cc.sizeof('off_t', prefix : '#include')) have_rtld_noload = cc.has_header_symbol('dlfcn.h', 'RTLD_NOLOAD') cdata.set('HAVE_RTLD_NOLOAD', have_rtld_noload)