diff options
author | guy <guy> | 2008-09-25 21:45:50 +0000 |
---|---|---|
committer | guy <guy> | 2008-09-25 21:45:50 +0000 |
commit | 2fa88fe1a328847927e6c991adaeecc6983856a0 (patch) | |
tree | 7d488e0d381ec74927d8d723dd96fdb284cb9ec4 /print-bt.c | |
parent | 70f5308d962604b2a3e21f77f851c9f69a1fc62c (diff) | |
download | tcpdump-2fa88fe1a328847927e6c991adaeecc6983856a0.tar.gz |
We support building tcpdump with versions of libpcap other than the one
with which it was released, and DLT_BLUETOOTH_HCI_H4_WITH_PHDR might be
defined by pcap-bpf.h without pcap/bluetooth.h being present (as appears
to be the case on Fedora 9, for example), so check whether
<pcap/bluetooth.h> is usable.
Update a comment - F9 appears to have a "/usr/include/pcap.h" if you
install the libpcap headers.
When adding -I flags when running a compiler-based test, add them to
CPPFLAGS, not CFLAGS - the latter doesn't work right with
AC_CHECK_HEADERS, as the "gcc -E" run doesn't have the -I flags added.
Diffstat (limited to 'print-bt.c')
-rw-r--r-- | print-bt.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -19,7 +19,7 @@ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/print-bt.c,v 1.1 2007-09-24 23:46:27 guy Exp $"; + "@(#) $Header: /tcpdump/master/tcpdump/print-bt.c,v 1.2 2008-09-25 21:45:50 guy Exp $"; #endif #ifdef HAVE_CONFIG_H @@ -35,7 +35,7 @@ static const char rcsid[] _U_ = #include "interface.h" #include "addrtoname.h" -#ifdef DLT_BLUETOOTH_HCI_H4_WITH_PHDR +#if defined(DLT_BLUETOOTH_HCI_H4_WITH_PHDR) && defined(HAVE_PCAP_BLUETOOTH_H) #include <pcap/bluetooth.h> #define BT_HDRLEN sizeof(pcap_bluetooth_h4_header) |