From 6794a88c44a772e273d081b4b5d6212aaef81d1e Mon Sep 17 00:00:00 2001 From: Ionen Wolkens Date: Wed, 5 Oct 2022 19:50:50 -0400 Subject: net-analyzer/pinger: fix build with upcoming clang16 Closes: https://bugs.gentoo.org/870871 Signed-off-by: Ionen Wolkens --- net-analyzer/pinger/files/pinger-0.33-clang16.patch | 8 ++++++++ net-analyzer/pinger/pinger-0.33-r1.ebuild | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 net-analyzer/pinger/files/pinger-0.33-clang16.patch (limited to 'net-analyzer/pinger') diff --git a/net-analyzer/pinger/files/pinger-0.33-clang16.patch b/net-analyzer/pinger/files/pinger-0.33-clang16.patch new file mode 100644 index 000000000000..1a6fe6cf03da --- /dev/null +++ b/net-analyzer/pinger/files/pinger-0.33-clang16.patch @@ -0,0 +1,8 @@ +https://bugs.gentoo.org/870871 +--- a/src/interface_ncurses.c ++++ b/src/interface_ncurses.c +@@ -41,3 +41,3 @@ + * characters */ +-static nr_print_ull(char *c, int max_chars, unsigned long long l) ++static int nr_print_ull(char *c, int max_chars, unsigned long long l) + { diff --git a/net-analyzer/pinger/pinger-0.33-r1.ebuild b/net-analyzer/pinger/pinger-0.33-r1.ebuild index 32bfd97f82a2..38ed420ff7df 100644 --- a/net-analyzer/pinger/pinger-0.33-r1.ebuild +++ b/net-analyzer/pinger/pinger-0.33-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -35,6 +35,7 @@ DOCS=( AUTHORS BUGS ChangeLog NEWS README ) PATCHES=( "${FILESDIR}"/${P}-gentoo.patch "${FILESDIR}"/${P}-musl-int-types.patch + "${FILESDIR}"/${P}-clang16.patch ) src_prepare() { -- cgit v1.2.3-65-gdbad