tcpdump: Backport a fix required for upcoming libpcap update

See also:	51f9c3b947
Reviewed by:	emaste
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Joseph Mingrone 2023-03-30 18:41:09 -03:00
parent 47d1e67874
commit 512c553671
No known key found for this signature in database
GPG Key ID: 36A40C83B0D6EF9E

View File

@ -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