mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Hack around wifi_legacy_hal.h transitive include bug.
Bug: http://b/111617490 Test: treehugger Merged-In: Ic98b8f253ae42107cddb90475044a063db2c666c Change-Id: Ic98b8f253ae42107cddb90475044a063db2c666c
This commit is contained in:
@@ -24,6 +24,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 {
|
||||
|
||||
Reference in New Issue
Block a user