diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2024-03-06 21:11:42 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2024-03-07 08:43:45 +0100 |
commit | 512392d81a8f78387cdee11029d7571ad8404480 (patch) | |
tree | 2fe8a88ca569342eb154bffc0087c16cd1a5a8c8 | |
parent | 272ca7ea524c38715662d01d49568a0fe126bd90 (diff) | |
download | tcpdump-512392d81a8f78387cdee11029d7571ad8404480.tar.gz |
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))
| ^~~~~~~~~~~~~
(cherry picked from commit bfc96b04831641376636337406aae7fe0fe65081)
-rw-r--r-- | interface.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/interface.h b/interface.h index 58e5ab33..c631c143 100644 --- a/interface.h +++ b/interface.h @@ -63,7 +63,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 |