Skip to content

meson: fix SIZEOF_OFF_T when cross-compiling with Meson >= 1.3.0

Loïc Yhuel requested to merge hwti/gstreamer:meson-off_t into main

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.

Merge request reports