diff options
author | Jeroen Roovers <jer@gentoo.org> | 2020-01-31 23:24:40 +0100 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2020-01-31 23:25:05 +0100 |
commit | cd138d3f292983c6b2edac56b139bdb98009e3af (patch) | |
tree | 5dc5a66e513b94d9ac6271b41710d8ba1cced294 /net-analyzer/netwatch/files | |
parent | dev-python/httpbin: keyworded 0.7.0 for hppa, bug #700940 (diff) | |
download | gentoo-cd138d3f292983c6b2edac56b139bdb98009e3af.tar.gz gentoo-cd138d3f292983c6b2edac56b139bdb98009e3af.tar.bz2 gentoo-cd138d3f292983c6b2edac56b139bdb98009e3af.zip |
net-analyzer/netwatch: Fix CFLAGS=-fno-common
Package-Manager: Portage-2.3.86, Repoman-2.3.20
Closes: https://bugs.gentoo.org/show_bug.cgi?id=707410
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Diffstat (limited to 'net-analyzer/netwatch/files')
-rw-r--r-- | net-analyzer/netwatch/files/netwatch-1.3.0.1-fno-common.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/net-analyzer/netwatch/files/netwatch-1.3.0.1-fno-common.patch b/net-analyzer/netwatch/files/netwatch-1.3.0.1-fno-common.patch new file mode 100644 index 000000000000..02331e7deead --- /dev/null +++ b/net-analyzer/netwatch/files/netwatch-1.3.0.1-fno-common.patch @@ -0,0 +1,44 @@ +--- a/dispdata.c ++++ b/dispdata.c +@@ -173,7 +173,6 @@ + extern int simchange; + extern int simfwdir; + extern int simarr[8]; +-char *simfmt; + extern int iseth; + extern int nw_logall; + extern char nw_allname[256]; +--- a/netwatch.c ++++ b/netwatch.c +@@ -161,6 +161,9 @@ + char mylog[MAXFILENAME] = "/root/.log"; + char specconfigfile[MAXFILENAME] = "/root/.netwatch.conf"; + ++struct port_info *tcp_port_types[TCPHASH]; ++struct port_info *udp_port_types[UDPHASH]; ++ + int fdlog; + + #if defined(_LINUX_IF_ETHER_H) || defined(_NETINET_IF_ETHER_H) +--- a/netwatch.h ++++ b/netwatch.h +@@ -209,16 +209,17 @@ + }; + + #define TCPHASH 1786 +-struct port_info *tcp_port_types[TCPHASH]; ++extern struct port_info *tcp_port_types[TCPHASH]; + + #define UDPHASH 1786 +-struct port_info *udp_port_types[UDPHASH]; ++extern struct port_info *udp_port_types[UDPHASH]; + + int hashport( int port, int hash); + void initlist(struct port_info *first[], int hash); + char *searchlist(struct port_info *first[], int port, int hash); + char *servicenm( char *s, int port); + ++extern char *simfmt; + + + struct hostinfo { |