summaryrefslogtreecommitdiff
path: root/net-analyzer/sancp/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-08-25 10:45:55 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-08-25 10:45:55 +0100
commit3cf7c3ef441822c889356fd1812ebf2944a59851 (patch)
treec513fe68548b40365c1c2ebfe35c58ad431cdd77 /net-analyzer/sancp/files
parent05b8b0e0af1d72e51a3ee61522941bf7605cd01c (diff)
gentoo resync : 25.08.2020
Diffstat (limited to 'net-analyzer/sancp/files')
-rw-r--r--net-analyzer/sancp/files/sancp-1.6.1-compiler.patch4
-rw-r--r--net-analyzer/sancp/files/sancp-1.6.1-extern.patch18
2 files changed, 20 insertions, 2 deletions
diff --git a/net-analyzer/sancp/files/sancp-1.6.1-compiler.patch b/net-analyzer/sancp/files/sancp-1.6.1-compiler.patch
index d7816cbdd5de..5b4391d79ddc 100644
--- a/net-analyzer/sancp/files/sancp-1.6.1-compiler.patch
+++ b/net-analyzer/sancp/files/sancp-1.6.1-compiler.patch
@@ -1,5 +1,5 @@
---- a/Makefile 2004-01-19 23:04:56.000000000 +0100
-+++ b/Makefile 2010-09-15 02:02:26.000000000 +0200
+--- a/Makefile
++++ b/Makefile
@@ -1,26 +1,26 @@
# !!! Uncomment this CFLAGS for a small binary !!!
diff --git a/net-analyzer/sancp/files/sancp-1.6.1-extern.patch b/net-analyzer/sancp/files/sancp-1.6.1-extern.patch
new file mode 100644
index 000000000000..c046f1eb4971
--- /dev/null
+++ b/net-analyzer/sancp/files/sancp-1.6.1-extern.patch
@@ -0,0 +1,18 @@
+--- a/sancp.cc
++++ b/sancp.cc
+@@ -54,7 +54,6 @@
+ *************/
+
+ int main(int argc, char *argv[]) {
+- extern struct gvars gVars;
+ int cKey;
+ pid_t pid=0;
+
+@@ -274,7 +273,6 @@
+
+ extern "C" void ProcessMyPacket(char *user, struct pcap_pkthdr * pkthdr, u_char * pkt)
+ {
+- extern struct gvars gVars;
+ CBuffer *buffer;
+ struct cnx *new_cnx=0;
+ gVars.timeptr.tv_sec=pkthdr->ts.tv_sec;