From 4af8b0f5a736d212adeac5a48f86f66c77ff1b72 Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Sat, 16 Mar 2024 09:25:27 +0100 Subject: [PATCH] v4l2: unset _TIME_BITS in addition to _FILE_OFFSET_BITS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The v4l2 build unsets _FILE_OFFSET_BITS, which is not allowed when setting _TIME_BITS=64. Having verified that nothing in this module is sensitive to 64-bit time_t (none of the functions it intercepts handle time), we also unset _TIME_BITS to allow this to build as before. Signed-off-by: Steve Langasek Reviewed-by: Dylan Aïssi --- pipewire-v4l2/src/meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/pipewire-v4l2/src/meson.build b/pipewire-v4l2/src/meson.build index a3c97c189..d59dccf3a 100644 --- a/pipewire-v4l2/src/meson.build +++ b/pipewire-v4l2/src/meson.build @@ -12,6 +12,7 @@ pipewire_v4l2_c_args = [ '-U_FILE_OFFSET_BITS', '-D_FILE_OFFSET_BITS=32', '-D_LARGEFILE64_SOURCE', + '-U_TIME_BITS', '-fvisibility=hidden', ]