summarylogtreecommitdiffstats
path: root/fix-globals.patch
diff options
context:
space:
mode:
authorChristoph Gysin2021-04-27 14:24:06 +0300
committerChristoph Gysin2021-04-27 14:24:06 +0300
commit1b1d1a54e675aab140e8e69bdf70d574a05fc6f7 (patch)
treec64059a42d4bb3151109b4fc4190e0a47c59d3f0 /fix-globals.patch
parent23a8b671cafd48939417f4bc8d700d70cfbae72c (diff)
downloadaur-tcpick.tar.gz
Fix linker errors
Diffstat (limited to 'fix-globals.patch')
-rw-r--r--fix-globals.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/fix-globals.patch b/fix-globals.patch
new file mode 100644
index 000000000000..dde90f08c8de
--- /dev/null
+++ b/fix-globals.patch
@@ -0,0 +1,22 @@
+diff --color -ur src/tcpick-0.2.1/src/conn.h src/tcpick-0.2.1-fixed/src/conn.h
+--- a/src/conn.h 2004-12-31 15:53:30.000000000 +0200
++++ b/src/conn.h 2021-04-27 14:16:35.892878266 +0300
+@@ -80,5 +80,3 @@
+ };
+
+
+-struct ip * ip_last_header; /* FIXME: check */
+-struct tcphdr * tcp_last_header;
+diff --color -ur src/tcpick-0.2.1/src/tracker.c src/tcpick-0.2.1-fixed/src/tracker.c
+--- a/src/tracker.c 2021-04-27 14:18:30.868244206 +0300
++++ b/src/tracker.c 2021-04-27 14:17:27.041848456 +0300
+@@ -28,9 +28,6 @@
+ #include "tcpick.h"
+ #include "extern.h"
+
+-struct CONN * first_conn = NULL; /*all connections, ends on a 0*/
+-struct CONN * last_conn = NULL;
+-
+ int
+ status_switch(struct CONN * prev, enum STATUS status)
+ {