net/StaticSocketAddress: disable SetLocal() on Android

Fixes build failure because Bionic doesn't provide SUN_LEN().
This commit is contained in:
Max Kellermann 2015-07-21 12:08:25 +02:00
parent 5bdbd74d59
commit 104fe124df
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -64,7 +64,7 @@ public:
size);
}
#ifdef HAVE_UN
#if defined(HAVE_UN) && !defined(__BIONIC__)
/**
* Make this a "local" address (UNIX domain socket).
*/