2013-10-29 12:48:41

by Andrei Emeltchenko

[permalink] [raw]
Subject: [PATCH] android: Fix build errors

From: Andrei Emeltchenko <[email protected]>

The patch fixes following issues when building:

Make links to sco.h and rfcomm.h needed for Android sockets.
...
btio.c:39:30: fatal error: bluetooth/rfcomm.h: No such file or directory
compilation terminated.
...
btio.c:40:27: fatal error: bluetooth/sco.h: No such file or directory
compilation terminated.
...
---
android/Android.mk | 2 ++
1 file changed, 2 insertions(+)

diff --git a/android/Android.mk b/android/Android.mk
index 28ec465..d8f9d0d 100644
--- a/android/Android.mk
+++ b/android/Android.mk
@@ -52,6 +52,8 @@ lib_headers := \
l2cap.h \
sdp_lib.h \
sdp.h \
+ rfcomm.h \
+ sco.h \

$(shell mkdir -p $(LOCAL_PATH)/../lib/bluetooth)

--
1.7.10.4



2013-10-29 13:05:12

by Johan Hedberg

[permalink] [raw]
Subject: Re: [PATCH] android: Fix build errors

Hi Andrei,

On Tue, Oct 29, 2013, Andrei Emeltchenko wrote:
> The patch fixes following issues when building:
>
> Make links to sco.h and rfcomm.h needed for Android sockets.
> ...
> btio.c:39:30: fatal error: bluetooth/rfcomm.h: No such file or directory
> compilation terminated.
> ...
> btio.c:40:27: fatal error: bluetooth/sco.h: No such file or directory
> compilation terminated.
> ...
> ---
> android/Android.mk | 2 ++
> 1 file changed, 2 insertions(+)

Applied. Thanks.

Johan