Commit 104fe124 authored by Max Kellermann's avatar Max Kellermann

net/StaticSocketAddress: disable SetLocal() on Android

Fixes build failure because Bionic doesn't provide SUN_LEN().
parent 5bdbd74d
......@@ -57,7 +57,7 @@ StaticSocketAddress::operator==(const StaticSocketAddress &other) const
memcmp(&address, &other.address, size) == 0;
}
#ifdef HAVE_UN
#if defined(HAVE_UN) && !defined(__BIONIC__)
void
StaticSocketAddress::SetLocal(const char *path)
......
......@@ -64,7 +64,7 @@ public:
size);
}
#ifdef HAVE_UN
#if defined(HAVE_UN) && !defined(__BIONIC__)
/**
* Make this a "local" address (UNIX domain socket).
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment