summaryrefslogtreecommitdiffstats
path: root/bluetooth
diff options
context:
space:
mode:
authorJiyong Park <jiyong@google.com>2017-07-10 13:27:05 +0900
committerJiyong Park <jiyong@google.com>2017-07-10 13:28:55 +0900
commitcb198f79904a7844e82e06b8e613b7e3a9466f64 (patch)
treeaaf03b5ecc15d1a5073fa4023248fcdc0d4abf69 /bluetooth
parent6f6840a9c174a8a739ffccb49fe8be72bbc2476d (diff)
downloadplatform_hardware_interfaces-cb198f79904a7844e82e06b8e613b7e3a9466f64.tar.gz
platform_hardware_interfaces-cb198f79904a7844e82e06b8e613b7e3a9466f64.tar.bz2
platform_hardware_interfaces-cb198f79904a7844e82e06b8e613b7e3a9466f64.zip
Build android.hardware.bluetooth* modules with BOARD_VNDK_VERSION
Add missing headers that aren't automatically included when BOARD_VNDK_VERSION is set. Bug: 37342627 Test: BOARD_VNDK_VERSION=current m -j <module> where <module> is android.hardware.bluetooth-async.vendor, android.hardware.bluetooth@1.0-impl.vendor, and android.hardware.bluetooth-hci.vendor Change-Id: Ifb14d254fa358fbd2b9fbeecb028d6efd18e9483
Diffstat (limited to 'bluetooth')
-rw-r--r--bluetooth/1.0/default/async_fd_watcher.cc2
-rw-r--r--bluetooth/1.0/default/bluetooth_address.cc1
-rw-r--r--bluetooth/1.0/default/h4_protocol.cc1
-rw-r--r--bluetooth/1.0/default/hci_packetizer.cc1
-rw-r--r--bluetooth/1.0/default/hci_protocol.cc1
5 files changed, 5 insertions, 1 deletions
diff --git a/bluetooth/1.0/default/async_fd_watcher.cc b/bluetooth/1.0/default/async_fd_watcher.cc
index bc0bc928d2..78676b2fe4 100644
--- a/bluetooth/1.0/default/async_fd_watcher.cc
+++ b/bluetooth/1.0/default/async_fd_watcher.cc
@@ -24,7 +24,7 @@
#include <map>
#include <mutex>
#include <thread>
-#include <utils/Log.h>
+#include <log/log.h>
#include <vector>
#include "fcntl.h"
#include "sys/select.h"
diff --git a/bluetooth/1.0/default/bluetooth_address.cc b/bluetooth/1.0/default/bluetooth_address.cc
index 65dc6a6164..fd53e78ac7 100644
--- a/bluetooth/1.0/default/bluetooth_address.cc
+++ b/bluetooth/1.0/default/bluetooth_address.cc
@@ -19,6 +19,7 @@
#include <cutils/properties.h>
#include <errno.h>
#include <fcntl.h>
+#include <unistd.h>
#include <utils/Log.h>
namespace android {
diff --git a/bluetooth/1.0/default/h4_protocol.cc b/bluetooth/1.0/default/h4_protocol.cc
index 2008b00093..054ed39a5a 100644
--- a/bluetooth/1.0/default/h4_protocol.cc
+++ b/bluetooth/1.0/default/h4_protocol.cc
@@ -22,6 +22,7 @@
#include <fcntl.h>
#include <log/log.h>
#include <sys/uio.h>
+#include <unistd.h>
namespace android {
namespace hardware {
diff --git a/bluetooth/1.0/default/hci_packetizer.cc b/bluetooth/1.0/default/hci_packetizer.cc
index 2da1254531..fde08ac1cb 100644
--- a/bluetooth/1.0/default/hci_packetizer.cc
+++ b/bluetooth/1.0/default/hci_packetizer.cc
@@ -21,6 +21,7 @@
#include <dlfcn.h>
#include <errno.h>
#include <fcntl.h>
+#include <unistd.h>
#include <utils/Log.h>
namespace {
diff --git a/bluetooth/1.0/default/hci_protocol.cc b/bluetooth/1.0/default/hci_protocol.cc
index 5d6f1d1396..bf94dfe884 100644
--- a/bluetooth/1.0/default/hci_protocol.cc
+++ b/bluetooth/1.0/default/hci_protocol.cc
@@ -20,6 +20,7 @@
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
+#include <unistd.h>
#include <log/log.h>
namespace android {