diff options
author | Jiyong Park <jiyong@google.com> | 2017-06-26 15:58:44 +0900 |
---|---|---|
committer | Jiyong Park <jiyong@google.com> | 2017-06-30 10:24:18 +0900 |
commit | a5e1dd544bb3b0bfd3dcdb9ae90ecf3c2ff003d3 (patch) | |
tree | 71aeb89b5452f994bdc15974f6cb09797bd66e1c | |
parent | edd4b8adc7eefe5cb225257668d260b3ae678d55 (diff) | |
download | wlan-a5e1dd544bb3b0bfd3dcdb9ae90ecf3c2ff003d3.tar.gz |
Building libwifi-hal-qcom with BOARD_VNDK_VERSION
Add missing header dependency and include system headers such as
unistd.h and pthread.h explicitly.
Bug: 37342627
Test: BOARD_VNDK_VERSION=current m -j libwifi-hal-qcom
Change-Id: Id844f42e02f5b1c83a697862204a52e8cdb8198d
-rw-r--r-- | qcwcn/wifi_hal/Android.mk | 4 | ||||
-rw-r--r-- | qcwcn/wifi_hal/common.cpp | 1 | ||||
-rw-r--r-- | qcwcn/wifi_hal/ring_buffer.cpp | 1 | ||||
-rw-r--r-- | qcwcn/wifi_hal/wifi_hal.cpp | 3 | ||||
-rw-r--r-- | qcwcn/wifi_hal/wificonfig.cpp | 1 |
5 files changed, 10 insertions, 0 deletions
diff --git a/qcwcn/wifi_hal/Android.mk b/qcwcn/wifi_hal/Android.mk index 10a5d42..c859c12 100644 --- a/qcwcn/wifi_hal/Android.mk +++ b/qcwcn/wifi_hal/Android.mk @@ -58,6 +58,7 @@ LOCAL_SRC_FILES := \ roam.cpp LOCAL_MODULE := libwifi-hal-qcom +LOCAL_PROPRIETARY_MODULE := true LOCAL_CLANG := true LOCAL_SHARED_LIBRARIES += libnetutils liblog libwpa_client libcld80211 @@ -69,6 +70,8 @@ LOCAL_SHARED_LIBRARIES += libnl_2 LOCAL_C_INCLUDES += external/libnl-headers endif +LOCAL_HEADER_LIBRARIES := libcutils_headers libutils_headers + include $(BUILD_STATIC_LIBRARY) include $(CLEAR_VARS) @@ -129,4 +132,5 @@ LOCAL_SHARED_LIBRARIES += libnl_2 LOCAL_C_INCLUDES += external/libnl-headers endif +LOCAL_HEADER_LIBRARIES := libcutils_headers libutils_headers include $(BUILD_SHARED_LIBRARY) diff --git a/qcwcn/wifi_hal/common.cpp b/qcwcn/wifi_hal/common.cpp index 2dd8395..729eb3c 100644 --- a/qcwcn/wifi_hal/common.cpp +++ b/qcwcn/wifi_hal/common.cpp @@ -20,6 +20,7 @@ #include <netlink-private/object-api.h> #include <netlink-private/types.h> #include <dlfcn.h> +#include <pthread.h> #include "wifi_hal.h" #include "common.h" diff --git a/qcwcn/wifi_hal/ring_buffer.cpp b/qcwcn/wifi_hal/ring_buffer.cpp index 8664515..cac8f6c 100644 --- a/qcwcn/wifi_hal/ring_buffer.cpp +++ b/qcwcn/wifi_hal/ring_buffer.cpp @@ -29,6 +29,7 @@ #include <stdint.h> #include <stdlib.h> #include <string.h> +#include <pthread.h> #define LOG_TAG "WifiHAL" diff --git a/qcwcn/wifi_hal/wifi_hal.cpp b/qcwcn/wifi_hal/wifi_hal.cpp index 822d6bc..4145785 100644 --- a/qcwcn/wifi_hal/wifi_hal.cpp +++ b/qcwcn/wifi_hal/wifi_hal.cpp @@ -40,6 +40,9 @@ #include <netinet/in.h> #include <cld80211_lib.h> +#include <sys/types.h> +#include <unistd.h> + #include "sync.h" #define LOG_TAG "WifiHAL" diff --git a/qcwcn/wifi_hal/wificonfig.cpp b/qcwcn/wifi_hal/wificonfig.cpp index 8a09488..0b987b5 100644 --- a/qcwcn/wifi_hal/wificonfig.cpp +++ b/qcwcn/wifi_hal/wificonfig.cpp @@ -32,6 +32,7 @@ #include <time.h> #include <errno.h> #include <stdlib.h> +#include <unistd.h> #include "wificonfigcommand.h" /* Implementation of the API functions exposed in wifi_config.h */ |