Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH] android/build: Fix build for kitkat
@ 2014-11-14 15:04 Jakub Tyszkowski
  2014-11-14 15:36 ` Szymon Janc
  0 siblings, 1 reply; 2+ messages in thread
From: Jakub Tyszkowski @ 2014-11-14 15:04 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Jakub Tyszkowski

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: ***
[out/target/product/hammerhead/obj/EXECUTABLES/haltest_intermediates/bluez/android/client/if-hf.o]
Error 1
---
 android/client/if-hf.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/android/client/if-hf.c b/android/client/if-hf.c
index d24612a..6b798f8 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 */
 
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] android/build: Fix build for kitkat
  2014-11-14 15:04 [PATCH] android/build: Fix build for kitkat Jakub Tyszkowski
@ 2014-11-14 15:36 ` Szymon Janc
  0 siblings, 0 replies; 2+ messages in thread
From: Szymon Janc @ 2014-11-14 15:36 UTC (permalink / raw)
  To: Jakub Tyszkowski; +Cc: linux-bluetooth

Hi Jakub,

On Friday 14 of November 2014 16:04:03 Jakub Tyszkowski wrote:
> 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: ***
> [out/target/product/hammerhead/obj/EXECUTABLES/haltest_intermediates/bluez/android/client/if-hf.o]
> Error 1
> ---
>  android/client/if-hf.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/android/client/if-hf.c b/android/client/if-hf.c
> index d24612a..6b798f8 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 */
>  

Applied, thanks. 

-- 
Best regards, 
Szymon Janc

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-11-14 15:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-14 15:04 [PATCH] android/build: Fix build for kitkat Jakub Tyszkowski
2014-11-14 15:36 ` Szymon Janc

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox