From: Guy Harris Date: Sun, 16 Jan 2011 19:52:15 +0000 (-0800) Subject: Protect against including AIX 5.x's having been included. X-Git-Tag: libpcap-1.2.1~85^2~11 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/908e112acdd2bd1477d555a0c5a46f99d3ae5fcd Protect against including AIX 5.x's having been included. --- diff --git a/pcap/bpf.h b/pcap/bpf.h index 07fb3f27..3fa2bf28 100644 --- a/pcap/bpf.h +++ b/pcap/bpf.h @@ -59,7 +59,9 @@ * We assume BSD-style multiple-include protection in , * which is true of all but the oldest versions of FreeBSD and NetBSD, * or Tru64 UNIX-style multiple-include protection (or, at least, - * Tru64 UNIX 5.x-style; I don't have earlier versions available to check). + * Tru64 UNIX 5.x-style; I don't have earlier versions available to check), + * or AIX-style multiple-include protection (or, at least, AIX 5.x-style; + * I don't have earlier versions available to check). * * We do not check for BPF_MAJOR_VERSION, as that's defined by * , which is directly or indirectly included in some @@ -68,7 +70,7 @@ * * This also provides our own multiple-include protection. */ -#if !defined(_NET_BPF_H_) && !defined(_BPF_H_) && !defined(lib_pcap_bpf_h) +#if !defined(_NET_BPF_H_) && !defined(_BPF_H_) && !defined(_H_BPF) && !defined(lib_pcap_bpf_h) #define lib_pcap_bpf_h #ifdef __cplusplus @@ -1094,4 +1096,4 @@ extern u_int bpf_filter(); } #endif -#endif /* !defined(_NET_BPF_H_) && !defined(_BPF_H_) && !defined(lib_pcap_bpf_h) */ +#endif /* !defined(_NET_BPF_H_) && !defined(_BPF_H_) && !defined(_H_BPF) && !defined(lib_pcap_bpf_h) */