File: 050_use-bsd-bpf.patch

package info (click to toggle)
firewalk 5.0-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 688 kB
  • sloc: sh: 1,754; ansic: 1,349; makefile: 26
file content (18 lines) | stat: -rw-r--r-- 415 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: fix FTBFS on Debian GNU/kFreeBSD
Author: David da Silva Polverari <david.polverari@gmail.com>
Last-Update: 2022-02-13

--- a/include/firewalk.h
+++ b/include/firewalk.h
@@ -37,6 +37,11 @@
 
 #include <setjmp.h>
 #include <ctype.h>
+#ifdef HAVE_BPF
+#define PCAP_DONT_INCLUDE_PCAP_BPF_H
+#include <sys/types.h>
+#include <net/bpf.h>
+#endif
 #include <pcap.h>
 #include <dumbnet.h>
 #include <libnet.h>