ports/net/file2pcap/files/patch-file2pcap.c
MANTANI Nobutaka 61062d314b - Update to 1.27 snapshot on 2019-11-22.
- Add patches to avoid build error with -fno-common (default of Clang 11 and GCC 10).
2020-08-25 16:41:52 +00:00

11 lines
375 B
C

--- file2pcap.c.orig 2019-11-21 15:44:46 UTC
+++ file2pcap.c
@@ -61,6 +61,8 @@ const int packetLen4 = (sizeof(SRC_ETHER)-1 + sizeof(D
const int packetLen6 = (sizeof(SRC_ETHER)-1 + sizeof(DST_ETHER)-1 + sizeof(PROTO_ETHER6)-1 + sizeof(struct ip6_hdr) + sizeof(struct tcphdr));
+struct pcap_packet_header ph;
+unsigned short srcport, dstport;
struct handover hoFtp;