net/StaticSocketAddress: disable SetLocal() on Android
Fixes build failure because Bionic doesn't provide SUN_LEN().
This commit is contained in:
parent
5bdbd74d59
commit
104fe124df
@ -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).
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user