diff options
author | Kristof Provost <kp@FreeBSD.org> | 2021-12-22 13:04:17 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2021-12-22 13:06:50 -0300 |
commit | 7075bf819e7c5c63fe08db41a406d89a25dac7d3 (patch) | |
tree | 1e55dbfd2c88c30b0f8ae7c68536e515ace40f3e /net/libpcap/files/patch-gencode.c | |
parent | sysutils/zrepl: Include build version in command output (diff) |
net/libpcap: Fix build
Fix build issues since if_pflog.h added a net/bpf.h include
Obtained from: https://github.com/the-tcpdump-group/libpcap/pull/1074
Sponsored by: Rubicon Communications, LLC ("Netgate")
Diffstat (limited to 'net/libpcap/files/patch-gencode.c')
-rw-r--r-- | net/libpcap/files/patch-gencode.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/net/libpcap/files/patch-gencode.c b/net/libpcap/files/patch-gencode.c new file mode 100644 index 000000000000..5f626d26ab32 --- /dev/null +++ b/net/libpcap/files/patch-gencode.c @@ -0,0 +1,20 @@ +--- gencode.c.orig 2021-06-07 20:21:35 UTC ++++ gencode.c +@@ -59,10 +59,16 @@ + #include <sys/socket.h> + #include <net/if.h> + #include <net/pfvar.h> +-#include <net/if_pflog.h> + #endif /* HAVE_NET_PFVAR_H */ + + #include "pcap-int.h" ++ ++#ifdef HAVE_NET_PFVAR_H ++/* FreeBSD includes <net/bpf.h> from <net/if_pflog.h>, and indirectly includes ++ * <net/dlt.h>. The FreeBSD version lacks DLT_IEEE802_15_4_TAP, so we really ++ * want to use our own version. */ ++#include <net/if_pflog.h> ++#endif /* HAVE_NET_PFVAR_H */ + + #include "extract.h" + |