mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-06 23:23:51 +02:00
ffmpeg6: fix build for glibc and gcc14
This commit is contained in:
parent
1297c50feb
commit
affc01a987
1 changed files with 17 additions and 0 deletions
17
srcpkgs/ffmpeg6/patches/v4l2-fix-glibc.patch
Normal file
17
srcpkgs/ffmpeg6/patches/v4l2-fix-glibc.patch
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
libv4l2.h uses #ifdef, not #if
|
||||||
|
|
||||||
|
diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c
|
||||||
|
index 42d4b97c8f701..0ae68723382f4 100644
|
||||||
|
--- a/libavdevice/v4l2.c
|
||||||
|
+++ b/libavdevice/v4l2.c
|
||||||
|
@@ -47,6 +47,10 @@
|
||||||
|
#include "v4l2-common.h"
|
||||||
|
#include <dirent.h>
|
||||||
|
|
||||||
|
+#if ! HAVE_POSIX_IOCTL
|
||||||
|
+#undef HAVE_POSIX_IOCTL
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
#if CONFIG_LIBV4L2
|
||||||
|
#include <libv4l2.h>
|
||||||
|
#endif
|
Loading…
Add table
Reference in a new issue