From 50cea264a8727a5c672e07efd935a6a21410890b Mon Sep 17 00:00:00 2001 From: Ionen Wolkens Date: Sun, 20 Nov 2022 19:26:57 -0500 Subject: media-video/setpwc: fix build w/ upcoming clang16 Closes: https://bugs.gentoo.org/874918 Signed-off-by: Ionen Wolkens --- media-video/setpwc/files/setpwc-1.3-clang16.patch | 8 ++++++++ media-video/setpwc/setpwc-1.3.ebuild | 7 +++++-- 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 media-video/setpwc/files/setpwc-1.3-clang16.patch (limited to 'media-video') diff --git a/media-video/setpwc/files/setpwc-1.3-clang16.patch b/media-video/setpwc/files/setpwc-1.3-clang16.patch new file mode 100644 index 000000000000..c74eceb09cdb --- /dev/null +++ b/media-video/setpwc/files/setpwc-1.3-clang16.patch @@ -0,0 +1,8 @@ +https://bugs.gentoo.org/874918 +--- a/setpwc.c ++++ b/setpwc.c +@@ -348,3 +348,3 @@ + +-void query_pan_tilt_status(fd) ++void query_pan_tilt_status(int fd) + { diff --git a/media-video/setpwc/setpwc-1.3.ebuild b/media-video/setpwc/setpwc-1.3.ebuild index cbc20cad7175..74d9c738c038 100644 --- a/media-video/setpwc/setpwc-1.3.ebuild +++ b/media-video/setpwc/setpwc-1.3.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -15,7 +15,10 @@ KEYWORDS="amd64 ~arm ppc x86" DEPEND="sys-kernel/linux-headers" -PATCHES=( "${FILESDIR}"/${P}-fix-build-system.patch ) +PATCHES=( + "${FILESDIR}"/${P}-fix-build-system.patch + "${FILESDIR}"/${P}-clang16.patch +) src_configure() { tc-export CC -- cgit v1.2.3-65-gdbad