summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsamr7 <samr7@126591fb-c623-4b62-a76d-97a8e4f34109>2009-01-27 01:35:35 +0000
committersamr7 <samr7@126591fb-c623-4b62-a76d-97a8e4f34109>2009-01-27 01:35:35 +0000
commit6ae2851a17574a683095ba63bb4f3f36a9713465 (patch)
tree4329f17ec035653fa864972eb046f07fbeea05cf
parent91e03cf7600cb77ee630614ca7e9813d11398c3a (diff)
downloadnohands-6ae2851a17574a683095ba63bb4f3f36a9713465.tar.gz
Attempt compatibility with versions of libbluetooth that define
SDP_SUPPORTED_FEATURES rather than SDP_ATTR_SUPPORTED_FEATURES. git-svn-id: http://nohands.svn.sourceforge.net/svnroot/nohands/trunk@85 126591fb-c623-4b62-a76d-97a8e4f34109
-rw-r--r--libhfp/bt.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/libhfp/bt.cpp b/libhfp/bt.cpp
index b5a6dc9..bae4836 100644
--- a/libhfp/bt.cpp
+++ b/libhfp/bt.cpp
@@ -59,6 +59,15 @@ namespace libhfp {
*
* Eventually this will be replaced with an asynchronous alternative.
*/
+
+/*
+ * Some versions of libbluetooth define the supported features attribute ID
+ * as below.
+ */
+#if !defined(SDP_ATTR_SUPPORTED_FEATURES)
+#define SDP_ATTR_SUPPORTED_FEATURES SDP_SUPPORTED_FEATURES
+#endif
+
int SdpAsyncTaskHandler::
SdpLookupChannel(SdpTaskParams &htp)
{