Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f3bbf194 authored by Josh Gao's avatar Josh Gao Committed by android-build-merger
Browse files

Hack around wifi_legacy_hal.h transitive include bug. am: 7715d50e

am: 9c1afd5c

Change-Id: Ib4bb7ac10f7c23cea29c5dcb7b1afc55266eef07
parents 3d4706d8 9c1afd5c
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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 {