diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-08-16 01:11:23 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-08-16 01:11:23 +0000 |
commit | 334a55a2ce50f949bcde5161c96e9c24fdb65967 (patch) | |
tree | 0d2bb8990625d727ed203fab8d2c1ae90dcaca5d /color.h | |
parent | 70ee7740c53898202557efd9a429718379598504 (diff) |
For "pcap_findalldevs()", don't assume that just because it's in -lpcap
it's usable - one of the updates to OS X 10.3 updated libpcap to
0.8[.x], so that it had "pcap_findalldevs()", but didn't update
"pcap.h", so it didn't declare "pcap_if_t", so you couldn't actually
*use* it. You can work around that by installing the pcap.h (and
pcap-bpf.h) from the matching tcpdump.org release, but, as even when
that version of OS X is pre-installed rather than being the result of a
Software Update, you still don't get the new "pcap.h" (at least I didn't
get it on my PowerBook with 10.3.4). Therefore, we check whether a
program that calls "pcap_findalldevs()" *and* declares a "pcap_if_t *"
to pass to it can be compiled and linked with -lpcap, and only declare
HAVE_PCAP_FINDALLDEVS if we can.
Also, don't check for the functions added to libpcap after
"pcap_findalldevs()" was added unless we have a usable
"pcap_findalldevs()", as, if not, those functions won't be declared in
"pcap.h" either, so we'll get compiler warnings.
svn path=/trunk/; revision=11745
Diffstat (limited to 'color.h')
0 files changed, 0 insertions, 0 deletions