diff options
author | Guy Harris <gharris@sonic.net> | 2020-05-16 22:33:35 -0700 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2020-05-16 22:33:35 -0700 |
commit | 0bb0b261a05bd0f396429bf99984343c9bade3b1 (patch) | |
tree | 50730a955dd49e290580f48014da0fec21bb26e9 /optimize.c | |
parent | 83842505386fcb1b37308c8508f0078ca7c6081f (diff) |
Avoid #define collisions with <linux/filter.h> or stuff it includes.
Some programs, e.g. pktgen-dpdk, include both <linux/filter.h> and
<pcap/bpf.h> in the same source file; both of them have BPF-instruction
Just as we protect against <net/bpf.h> and <pcap/bpf.h> colliding, we
protect against <linux/filter.h> and <pcap/bpf.h> colliding, although we
need to protect fewer things as <linux/filter.h> doesn't define
everything we need.
This should address GitHub pull request #933.
Diffstat (limited to 'optimize.c')
0 files changed, 0 insertions, 0 deletions