From: Francois-Xavier Le Bail Date: Wed, 6 Mar 2024 20:11:42 +0000 (+0100) Subject: Capsicum support: Fix a 'not defined' macro error X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/bfc96b04831641376636337406aae7fe0fe65081?ds=sidebyside Capsicum support: Fix a 'not defined' macro error The error was: In file included from ./tcpdump.c:158: ./interface.h:62:32: error: "HAVE_CAPSICUM" is not defined, evaluates to 0 [-Werror=undef] 62 | (defined(HAVE_BPF_DUMP) && HAVE_CAPSICUM && !defined(bpf_dump)) | ^~~~~~~~~~~~~ --- diff --git a/interface.h b/interface.h index b129312a..0e35b780 100644 --- a/interface.h +++ b/interface.h @@ -59,7 +59,7 @@ struct bpf_program; * 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)) + (defined(HAVE_BPF_DUMP) && defined(HAVE_CAPSICUM) && !defined(bpf_dump)) extern void bpf_dump(const struct bpf_program *, int); #endif