From: Jeroen Roovers Date: Mon, 27 Jan 2020 00:44:34 +0000 (+0100) Subject: net-analyzer/hping: Fix CFLAGS=-fno-common X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b5e5f0a4194fe88aafa939045d92391eeeb87bff;p=gentoo.git net-analyzer/hping: Fix CFLAGS=-fno-common Package-Manager: Portage-2.3.85, Repoman-2.3.20 Closes: https://bugs.gentoo.org/show_bug.cgi?id=706566 Signed-off-by: Jeroen Roovers --- diff --git a/net-analyzer/hping/files/hping-3_pre20141226-fno-common.patch b/net-analyzer/hping/files/hping-3_pre20141226-fno-common.patch new file mode 100644 index 000000000000..e21a6d513c59 --- /dev/null +++ b/net-analyzer/hping/files/hping-3_pre20141226-fno-common.patch @@ -0,0 +1,11 @@ +--- a/hping2.h ++++ b/hping2.h +@@ -357,8 +357,6 @@ + int status; + }; + +-volatile struct delaytable_element delaytable[TABLESIZE]; +- + /* protos */ + void nop(void); /* nop */ + int parse_options(int, char**); /* option parser */ diff --git a/net-analyzer/hping/hping-3_pre20141226.ebuild b/net-analyzer/hping/hping-3_pre20141226.ebuild index 72c3c7249331..3c3a3f166ea6 100644 --- a/net-analyzer/hping/hping-3_pre20141226.ebuild +++ b/net-analyzer/hping/hping-3_pre20141226.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -33,6 +33,7 @@ PATCHES=( "${FILESDIR}"/${PN}-3_pre20141226-pcap-bpf.patch "${FILESDIR}"/${PN}-3_pre20141226-scan-overflow.patch "${FILESDIR}"/${PN}-3_pre20141226-unused-but-set.patch + "${FILESDIR}"/${PN}-3_pre20141226-fno-common.patch ) src_configure() {