rtkbt: Support VNDK.
authorlqh <kevin.lin@rock-chips.com>
Tue, 24 Jul 2018 07:34:09 +0000 (15:34 +0800)
committerBian Jin chen <kenjc.bian@rock-chips.com>
Wed, 25 Jul 2018 12:11:06 +0000 (20:11 +0800)
Use: BOARD_VNDK_VERSION := current to check vndk.VNDK

Change-Id: I98765199e8b0ef40de5e43b709a96ad9d77093d4

rtkbt/code/libbt-vendor/Android.mk
rtkbt/code/libbt-vendor/src/hci_h5.c
rtkbt/code/libbt-vendor/src/rtk_btsnoop_net.c

index 1f90bae07feb8989f35c52b5b7ac61aa4fc6adde..19451500cdaaf6d9d1b2cc58fc0c577136f6c59b 100644 (file)
@@ -21,7 +21,8 @@ LOCAL_C_INCLUDES += \
 
 LOCAL_SHARED_LIBRARIES := \
         libcutils \
-       liblog
+        liblog  \
+        libutils
 
 LOCAL_MODULE := libbt-vendor-realtek
 LOCAL_MODULE_TAGS := optional
index f1f23f3c47041ca7a1e1f925c6f8a6c1b8d47d76..aae2bb6f9f293fa8527e5f74b56785634bc50db0 100644 (file)
@@ -38,6 +38,7 @@
 #include <fcntl.h>
 #include <termios.h>
 #include <errno.h>
+#include <pthread.h>
 #include <signal.h>
 #include <time.h>
 #include <sys/prctl.h>
@@ -45,6 +46,7 @@
 #include <arpa/inet.h>
 #include <string.h>
 #include <linux/wait.h>
+#include <unistd.h>
 
 #include "hci_h5_int.h"
 #include "bt_skbuff.h"
index 91e88144a19ca7d7a10616d0c79b03c74d2aa77f..dcf46368157d4f9bc01e7b2519b0808101b88761 100644 (file)
@@ -18,7 +18,7 @@
 
 #define LOG_TAG "rtk_btsnoop_net"
 #include "rtk_btsnoop_net.h"
-
+#include <unistd.h>
 
 #define DATA_DIRECT_2_ELLISY 1