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 | e5c50598563c8be018b3cc3bc95cb2e0c4b4d98f (patch) | |
tree | 4329f17ec035653fa864972eb046f07fbeea05cf | |
parent | 57843df2ad76b960c75b6dc6e3e7288e2ffe8c13 (diff) | |
download | nohands-e5c50598563c8be018b3cc3bc95cb2e0c4b4d98f.tar.gz |
Attempt compatibility with versions of libbluetooth that define
SDP_SUPPORTED_FEATURES rather than SDP_ATTR_SUPPORTED_FEATURES.
git-svn-id: https://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) { |