summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0003-meson.build-fix-arm-_TIME_BITS-64-error.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0003-meson.build-fix-arm-_TIME_BITS-64-error.patch')
-rw-r--r--meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0003-meson.build-fix-arm-_TIME_BITS-64-error.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0003-meson.build-fix-arm-_TIME_BITS-64-error.patch b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0003-meson.build-fix-arm-_TIME_BITS-64-error.patch
new file mode 100644
index 0000000000..f41dde0e16
--- /dev/null
+++ b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0003-meson.build-fix-arm-_TIME_BITS-64-error.patch
@@ -0,0 +1,38 @@
1From 5aabd01e415374fc97eebe80d4635c3bae728f81 Mon Sep 17 00:00:00 2001
2From: Hans Verkuil <hverkuil@xs4all.nl>
3Date: Sat, 12 Apr 2025 12:30:13 +0200
4Subject: [PATCH] meson.build: fix arm _TIME_BITS=64 error
5
6Undefine _TIME_BITS to avoid this error on 32-bit arm:
7
8/usr/include/features-time64.h:26:5: error: #error "_TIME_BITS=64 is allowed only with _FILE_OFFSET_BITS=64"
9
10Upstream-Status: Backport [https://github.com/gjasny/v4l-utils/commit/d517cfdcdc16533ab7e06e97c07ca089cf261aef]
11
12Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
13Signed-off-by: Jiaying Song <jiaying.song.cn@windriver.com>
14---
15 meson.build | 6 +++++-
16 1 file changed, 5 insertions(+), 1 deletion(-)
17
18diff --git a/meson.build b/meson.build
19index 269a9da7..31927cda 100644
20--- a/meson.build
21+++ b/meson.build
22@@ -53,8 +53,12 @@ v4l2_wrapper_args = [
23 # As the library needs to provide both 32-bit and 64-bit versions
24 # of file operations, disable transparent large file support (fixes
25 # 'Error: symbol `open64/mmap64' is already defined' compile failure
26- # otherwise)
27+ # otherwise).
28+ #
29+ # Also disable _TIME_BITS=64 since this is allowed only with
30+ # _FILE_OFFSET_BITS=64, which is now 32.
31 '-U_FILE_OFFSET_BITS',
32+ '-U_TIME_BITS',
33 '-D_FILE_OFFSET_BITS=32',
34 '-D_LARGEFILE64_SOURCE',
35 ]
36--
372.34.1
38