Bluetooth: Fix VNDK Compilation Errors

VNDK restrictions doesn't includes standard headers by
default, add them explicitly.

CRs-Fixed: 2235412
Change-Id: Ic4f6da36c27a07e29fb5b093da65b5cc6755b0c8
diff --git a/libbt-vendor/Android.mk b/libbt-vendor/Android.mk
index 2f8856f..d30f78c 100644
--- a/libbt-vendor/Android.mk
+++ b/libbt-vendor/Android.mk
@@ -21,8 +21,7 @@
 include $(CLEAR_VARS)
 
 #logging headers
-LOCAL_HEADER_LIBRARIES := libcutils_headers
-
+LOCAL_HEADER_LIBRARIES := libutils_headers
 LOCAL_SRC_FILES := \
         src/bt_vendor_qcom.c \
         src/hardware.c \
diff --git a/libbt-vendor/src/bt_vendor_qcom.c b/libbt-vendor/src/bt_vendor_qcom.c
index 0409daa..b090add 100755
--- a/libbt-vendor/src/bt_vendor_qcom.c
+++ b/libbt-vendor/src/bt_vendor_qcom.c
@@ -30,6 +30,8 @@
 #include <cutils/properties.h>
 #include <fcntl.h>
 #include <termios.h>
+#include <unistd.h>
+#include <pthread.h>
 #include "bt_vendor_qcom.h"
 #include "hci_uart.h"
 #include "hci_smd.h"
diff --git a/libbt-vendor/src/hardware.c b/libbt-vendor/src/hardware.c
index 90db801..d071bc3 100644
--- a/libbt-vendor/src/hardware.c
+++ b/libbt-vendor/src/hardware.c
@@ -40,6 +40,7 @@
 #include "bt_hci_bdroid.h"
 #include "bt_vendor_qcom.h"
 #include <string.h>
+#include <unistd.h>
 #define MAX_CNT_RETRY 100
 
 int hw_config(int nState)
diff --git a/libbt-vendor/src/hci_smd.c b/libbt-vendor/src/hci_smd.c
index 7e5b16d..36e7bce 100644
--- a/libbt-vendor/src/hci_smd.c
+++ b/libbt-vendor/src/hci_smd.c
@@ -33,6 +33,7 @@
 #include "hci_smd.h"
 #include <string.h>
 #include <cutils/properties.h>
+#include <unistd.h>
 
 /*****************************************************************************
 **   Macros & Constants
diff --git a/libbt-vendor/src/hci_uart.c b/libbt-vendor/src/hci_uart.c
index 2aeace8..9e96a13 100644
--- a/libbt-vendor/src/hci_uart.c
+++ b/libbt-vendor/src/hci_uart.c
@@ -34,6 +34,7 @@
 #include "bt_vendor_qcom.h"
 #include "hci_uart.h"
 #include <string.h>
+#include <unistd.h>
 
 /******************************************************************************
 **  Constants & Macros
diff --git a/libbt-vendor/src/hw_ar3k.c b/libbt-vendor/src/hw_ar3k.c
index cc54db8..dcb351f 100644
--- a/libbt-vendor/src/hw_ar3k.c
+++ b/libbt-vendor/src/hw_ar3k.c
@@ -48,6 +48,9 @@
 #include <stdlib.h>
 #include <termios.h>
 #include <string.h>
+#include <string.h>
+#include <unistd.h>
+#include <sys/uio.h>
 
 #include "bt_hci_bdroid.h"
 #include "bt_vendor_qcom.h"
diff --git a/libbt-vendor/src/hw_rome.c b/libbt-vendor/src/hw_rome.c
index ccfb137..ea58c4e 100644
--- a/libbt-vendor/src/hw_rome.c
+++ b/libbt-vendor/src/hw_rome.c
@@ -49,6 +49,7 @@
 #include <termios.h>
 #include <string.h>
 #include <stdbool.h>
+#include <unistd.h>
 #include "bt_hci_bdroid.h"
 #include "bt_vendor_qcom.h"
 #include "hci_uart.h"