diff options
author | Josh Gao <jmgao@google.com> | 2018-07-19 11:14:49 -0700 |
---|---|---|
committer | Josh Gao <jmgao@google.com> | 2018-07-23 16:53:11 -0700 |
commit | 7715d50e5501c3632ddc5a82bdd44d40bba7ffe6 (patch) | |
tree | 190e78575f7cd570ea1a0bf8ed5f419f7e764a56 | |
parent | 5938dab36f496275016bd6ce1e57e6c57e715bef (diff) |
Hack around wifi_legacy_hal.h transitive include bug.
Bug: http://b/111617490
Test: treehugger
Change-Id: Id87852f01fa22cbcf34862e5a37d27021a721dfa
(cherry picked from commit 339c3c2f1b56b62d9d44b8ca36d7bc59166db631)
-rw-r--r-- | wifi/1.2/default/wifi_legacy_hal.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/wifi/1.2/default/wifi_legacy_hal.h b/wifi/1.2/default/wifi_legacy_hal.h index 60905ab399..00dfeefb9a 100644 --- a/wifi/1.2/default/wifi_legacy_hal.h +++ b/wifi/1.2/default/wifi_legacy_hal.h @@ -25,6 +25,12 @@ #include <wifi_system/interface_tool.h> +// HACK: The include inside the namespace below also transitively includes a +// bunch of libc headers into the namespace, which leads to functions like +// socketpair being defined in android::hardware::wifi::V1_1::implementation::legacy_hal. +// Include this one particular header as a hacky workaround until that's fixed. +#include <sys/socket.h> + namespace android { namespace hardware { namespace wifi { |