diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2024-03-21 19:52:56 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2024-03-21 19:56:42 +0100 |
commit | e900bc4aa52f3bf1fcfc109fac84b41854df40c5 (patch) | |
tree | 439c80748043ed57090a24684e55270d7a8e3676 | |
parent | 0cc5f0e882b544454381efdc8791ef3e57b96a6b (diff) | |
download | libpcap-e900bc4aa52f3bf1fcfc109fac84b41854df40c5.tar.gz |
pcap-bpf: Fix a 'not defined' macro error
The error was:
./pcap-bpf.c: In function 'pcap_activate_bpf':
./pcap-bpf.c:2334:5: error: "_BSDI_VERSION" is not defined, evaluates
to 0 [-Werror=undef]
2329 | #if _BSDI_VERSION - 0 >= 199510
| ^~~~~~~~~~~~~
-rw-r--r-- | pcap-bpf.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2326,7 +2326,7 @@ pcap_activate_bpf(pcap_t *p) goto bad; } #endif -#if _BSDI_VERSION - 0 >= 199510 +#if defined(_BSDI_VERSION) && _BSDI_VERSION >= 199510 /* The SLIP and PPP link layer header changed in BSD/OS 2.1 */ switch (v) { |