| 1 | commit 6408745f54ada32bad44227e6b4173e46641afaa
|
| 2 | Author: q66 <[email protected]>
|
| 3 | Date: 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 |
|
| 17 | diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c
|
| 18 | index c38ecbb..3457b43 100644
|
| 19 | |
| 20 | |
| 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 |
|