diff options
-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 { |