From affc01a98775db0059c9431f05b3671b5c989855 Mon Sep 17 00:00:00 2001 From: oreo639 Date: Wed, 16 Apr 2025 12:41:33 -0700 Subject: [PATCH] ffmpeg6: fix build for glibc and gcc14 --- srcpkgs/ffmpeg6/patches/v4l2-fix-glibc.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 srcpkgs/ffmpeg6/patches/v4l2-fix-glibc.patch diff --git a/srcpkgs/ffmpeg6/patches/v4l2-fix-glibc.patch b/srcpkgs/ffmpeg6/patches/v4l2-fix-glibc.patch new file mode 100644 index 00000000000..e4c9b1eb6c8 --- /dev/null +++ b/srcpkgs/ffmpeg6/patches/v4l2-fix-glibc.patch @@ -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 + ++#if ! HAVE_POSIX_IOCTL ++#undef HAVE_POSIX_IOCTL ++#endif ++ + #if CONFIG_LIBV4L2 + #include + #endif