v4l2: unset _TIME_BITS in addition to _FILE_OFFSET_BITS

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 <steve.langasek@canonical.com>
Reviewed-by: Dylan Aïssi <dylan.aissi@collabora.com>
This commit is contained in:
Steve Langasek 2024-03-16 09:25:27 +01:00 committed by Dylan Aïssi
parent 2c0d73ab49
commit 4af8b0f5a7

View file

@ -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',
]