summaryrefslogtreecommitdiff
path: root/android/client
diff options
context:
space:
mode:
authorJakub Tyszkowski <jakub.tyszkowski@tieto.com>2014-11-14 16:04:03 +0100
committerSzymon Janc <szymon.janc@tieto.com>2014-11-14 16:10:51 +0100
commit43d8424990cb3d7e9e85cdf8207a35de789bd65a (patch)
treea34c1864f027d0fedcb6bef7052c015a9eea6df6 /android/client
parentcffdf1b687cec95448a0ae05498a8a48b2b3c5f6 (diff)
downloadbluez-43d8424990cb3d7e9e85cdf8207a35de789bd65a.tar.gz
android/client: Fix build on Android Kitkat
Fix missing kitkat build failure: external/bluetooth/bluez/android/client/if-hf.c: At top level: external/bluetooth/bluez/android/client/if-hf.c:108:1: error: unknown type name 'bthf_wbs_config_t' external/bluetooth/bluez/android/client/if-hf.c:108:1: error: unknown type name 'bthf_wbs_config_t' external/bluetooth/bluez/android/client/if-hf.c: In function 'str2bthf_wbs_config_t': external/bluetooth/bluez/android/client/if-hf.c:108:1: error: 'bthf_wbs_config_t' undeclared (first use in this function) external/bluetooth/bluez/android/client/if-hf.c:108:1: note: each undeclared identifier is reported only once for each function it appears in external/bluetooth/bluez/android/client/if-hf.c: At top level: external/bluetooth/bluez/android/client/if-hf.c:109:2: error: 'BTHF_WBS_NONE' undeclared here (not in a function) external/bluetooth/bluez/android/client/if-hf.c:110:2: error: 'BTHF_WBS_NO' undeclared here (not in a function) external/bluetooth/bluez/android/client/if-hf.c:111:2: error: 'BTHF_WBS_YES' undeclared here (not in a function) make: ***
Diffstat (limited to 'android/client')
-rw-r--r--android/client/if-hf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/android/client/if-hf.c b/android/client/if-hf.c
index d24612a4a..6b798f86d 100644
--- a/android/client/if-hf.c
+++ b/android/client/if-hf.c
@@ -105,11 +105,13 @@ SINTMAP(bthf_call_addrtype_t, -1, "(unknown)")
DELEMENT(BTHF_CALL_ADDRTYPE_INTERNATIONAL),
ENDMAP
+#if ANDROID_VERSION >= PLATFORM_VER(5, 0, 0)
SINTMAP(bthf_wbs_config_t, -1, "(unknown)")
DELEMENT(BTHF_WBS_NONE),
DELEMENT(BTHF_WBS_NO),
DELEMENT(BTHF_WBS_YES),
ENDMAP
+#endif
/* Callbacks */