diff options
author | samr7 <samr7@126591fb-c623-4b62-a76d-97a8e4f34109> | 2009-01-27 01:35:35 +0000 |
---|---|---|
committer | samr7 <samr7@126591fb-c623-4b62-a76d-97a8e4f34109> | 2009-01-27 01:35:35 +0000 |
commit | 6ae2851a17574a683095ba63bb4f3f36a9713465 (patch) | |
tree | 4329f17ec035653fa864972eb046f07fbeea05cf | |
parent | 91e03cf7600cb77ee630614ca7e9813d11398c3a (diff) | |
download | nohands-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.cpp | 9 |
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) { |