commit:     667a4998e29bec427a8f7ffe29a8de668a24d948
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 29 04:14:52 2022 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Thu Sep 29 04:17:55 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=667a4998

net-analyzer/jnettop: fix configure with clang16

Closes: https://bugs.gentoo.org/870667
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 net-analyzer/jnettop/files/jnettop-0.13.0-clang16.patch | 9 +++++++++
 net-analyzer/jnettop/jnettop-0.13.0-r2.ebuild           | 1 +
 2 files changed, 10 insertions(+)

diff --git a/net-analyzer/jnettop/files/jnettop-0.13.0-clang16.patch 
b/net-analyzer/jnettop/files/jnettop-0.13.0-clang16.patch
new file mode 100644
index 000000000000..d8723b6a5b13
--- /dev/null
+++ b/net-analyzer/jnettop/files/jnettop-0.13.0-clang16.patch
@@ -0,0 +1,9 @@
+https://bugs.gentoo.org/870667
+--- a/acinclude.m4
++++ b/acinclude.m4
+@@ -151,4 +151,5 @@
+ AC_MSG_CHECKING([if "localhost" resolves])
+ AC_TRY_RUN([
++#include <stdlib.h>
+ #include <string.h>
+ #include <sys/types.h>

diff --git a/net-analyzer/jnettop/jnettop-0.13.0-r2.ebuild 
b/net-analyzer/jnettop/jnettop-0.13.0-r2.ebuild
index f94cbf95ae1c..bfac1d1b3de9 100644
--- a/net-analyzer/jnettop/jnettop-0.13.0-r2.ebuild
+++ b/net-analyzer/jnettop/jnettop-0.13.0-r2.ebuild
@@ -27,6 +27,7 @@ BDEPEND="virtual/pkgconfig"
 PATCHES=(
        "${FILESDIR}/${P}-asneeded.patch"
        "${FILESDIR}/${P}-tinfo.patch"
+       "${FILESDIR}/${P}-clang16.patch"
 )
 
 src_prepare() {

Reply via email to