net-analyzer/hping: Fix CFLAGS=-fno-common
authorJeroen Roovers <jer@gentoo.org>
Mon, 27 Jan 2020 00:44:34 +0000 (01:44 +0100)
committerJeroen Roovers <jer@gentoo.org>
Mon, 27 Jan 2020 00:44:50 +0000 (01:44 +0100)
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 <jer@gentoo.org>
net-analyzer/hping/files/hping-3_pre20141226-fno-common.patch [new file with mode: 0644]
net-analyzer/hping/hping-3_pre20141226.ebuild

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 (file)
index 0000000..e21a6d5
--- /dev/null
@@ -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 */
index 72c3c7249331821338b03b62df158802459fa6c3..3c3a3f166ea6b586e238e060d17ff0a3c6eb437d 100644 (file)
@@ -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() {