aboutsummaryrefslogtreecommitdiff
path: root/contrib/tcpdump
diff options
context:
space:
mode:
authorJoseph Mingrone <jrm@FreeBSD.org>2023-03-30 21:41:09 +0000
committerJoseph Mingrone <jrm@FreeBSD.org>2023-03-30 22:52:10 +0000
commit512c553671bef26e93342d4ae1ec5f60d8ae112b (patch)
treee40145bda03bd673f1d1c8b4f24fdc87c93120ee /contrib/tcpdump
parent47d1e67874fae0e13a4670a5faa97e87d4667140 (diff)
Diffstat (limited to 'contrib/tcpdump')
-rw-r--r--contrib/tcpdump/interface.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/tcpdump/interface.h b/contrib/tcpdump/interface.h
index 46d338b4af24..cbe1851c5bb8 100644
--- a/contrib/tcpdump/interface.h
+++ b/contrib/tcpdump/interface.h
@@ -73,7 +73,13 @@ extern char *program_name; /* used to generate self-identifying messages */
#ifndef HAVE_BPF_DUMP
struct bpf_program;
+#endif
+/*
+ * With Capsicum bpf_dump() may be not declared even if HAVE_BPF_DUMP is set.
+ */
+#if !defined(HAVE_BPF_DUMP) || \
+ (defined(HAVE_BPF_DUMP) && HAVE_CAPSICUM && !defined(bpf_dump))
extern void bpf_dump(const struct bpf_program *, int);
#endif