summaryrefslogtreecommitdiff
path: root/print-bt.c
diff options
context:
space:
mode:
authorguy <guy>2008-09-25 21:45:50 +0000
committerguy <guy>2008-09-25 21:45:50 +0000
commit2fa88fe1a328847927e6c991adaeecc6983856a0 (patch)
tree7d488e0d381ec74927d8d723dd96fdb284cb9ec4 /print-bt.c
parent70f5308d962604b2a3e21f77f851c9f69a1fc62c (diff)
downloadtcpdump-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/print-bt.c b/print-bt.c
index 75da5115..1f97475f 100644
--- a/print-bt.c
+++ b/print-bt.c
@@ -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)