File: fix-gcc-10.patch

package info (click to toggle)
tcpick 0.2.1-12
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,184 kB
  • sloc: ansic: 2,557; sh: 931; makefile: 16
file content (27 lines) | stat: -rw-r--r-- 646 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Description: Fix FTBFS with GCC-10.
Author: Luis Paulo Linares <lpfllinares@gmail.com>
Bug-Debian: https://bugs.debian.org/957860
Last-Update: 2020-08-17

--- a/src/conn.h
+++ b/src/conn.h
@@ -80,5 +80,5 @@
 };
 
 
-struct ip * ip_last_header; /* FIXME: check */
-struct tcphdr * tcp_last_header;
+extern struct ip * ip_last_header; /* FIXME: check */
+extern struct tcphdr * tcp_last_header;
--- a/src/globals.h
+++ b/src/globals.h
@@ -39,7 +39,7 @@
 int ip_size  = 0;
 int tcp_size = 0;
 
-struct CONN * first_conn;
-struct CONN * last_conn;
+extern struct CONN * first_conn;
+extern struct CONN * last_conn;
 
 enum EXPIRED_FLAG expired_flag;