aboutsummaryrefslogtreecommitdiff
path: root/bpf_image.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2019-10-14 15:31:24 -0700
committerGuy Harris <guy@alum.mit.edu>2019-10-14 15:31:24 -0700
commitfea6f4633294c078311f51819c73ad6acb8ed87e (patch)
tree4225fc14eed710d173e639ad6de3a65aeb61585d /bpf_image.c
parent6db5e85ac779ae66541c0f98463592564973de2a (diff)
Squelch some annoying warnings.
Diffstat (limited to 'bpf_image.c')
-rw-r--r--bpf_image.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/bpf_image.c b/bpf_image.c
index 7ff5d575..e48c76d5 100644
--- a/bpf_image.c
+++ b/bpf_image.c
@@ -32,6 +32,14 @@
#include <linux/types.h>
#include <linux/if_packet.h>
#include <linux/filter.h>
+
+/*
+ * We want our versions of these #defines, not Linux's version.
+ * (The two should be the same; if not, we have a problem; all BPF
+ * implementations *should* be source-compatible supersets of ours.)
+ */
+#undef BPF_STMT
+#undef BPF_JUMP
#endif
#include "pcap-int.h"