projects/aports·blob master · refs

30 lines · 829 B

1commit 6408745f54ada32bad44227e6b4173e46641afaa
2Author: q66 <[email protected]>
3Date: Tue Nov 11 18:12:01 2025 +0100
4
5 fix posix ioctl on musl
6
7 The libv4l2 is built with posix ioctl but to make it known to
8 the header the macro needs to be defined which is unfortunate.
9
10 ffmpeg had it work for a while but then it broke when this
11 commit was introduced:
12
13 https://github.com/FFmpeg/FFmpeg/commit/5fea5e3e11d6ff425db48f44489916399822aece
14
15 due to the macro previously being accidentally defined
16
17diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c
18index c38ecbb..3457b43 100644
19--- a/libavdevice/v4l2.c
20+++ b/libavdevice/v4l2.c
21@@ -49,6 +49,9 @@
22 #include <dirent.h>
23
24 #if CONFIG_LIBV4L2
25+#if HAVE_IOCTL_POSIX
26+#define LIBV4L_HAVE_POSIX_IOCTL
27+#endif
28 #include <libv4l2.h>
29 #endif
30