diff options
author | Max Kellermann <max@duempel.org> | 2015-07-21 12:08:25 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-07-21 12:08:25 +0200 |
commit | 104fe124dfefac9b41d692924e6774209d081f9a (patch) | |
tree | b8ae025300293860e96533138b332362574d07f4 /src/net | |
parent | 5bdbd74d591e87e327835faf71741eacab3ce00f (diff) | |
download | mpd-104fe124dfefac9b41d692924e6774209d081f9a.tar.gz mpd-104fe124dfefac9b41d692924e6774209d081f9a.tar.xz mpd-104fe124dfefac9b41d692924e6774209d081f9a.zip |
net/StaticSocketAddress: disable SetLocal() on Android
Fixes build failure because Bionic doesn't provide SUN_LEN().
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/StaticSocketAddress.cxx | 2 | ||||
-rw-r--r-- | src/net/StaticSocketAddress.hxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/net/StaticSocketAddress.cxx b/src/net/StaticSocketAddress.cxx index b9bd01aeb..20dd175c6 100644 --- a/src/net/StaticSocketAddress.cxx +++ b/src/net/StaticSocketAddress.cxx @@ -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) diff --git a/src/net/StaticSocketAddress.hxx b/src/net/StaticSocketAddress.hxx index 4cf294c1e..72180f0bc 100644 --- a/src/net/StaticSocketAddress.hxx +++ b/src/net/StaticSocketAddress.hxx @@ -64,7 +64,7 @@ public: size); } -#ifdef HAVE_UN +#if defined(HAVE_UN) && !defined(__BIONIC__) /** * Make this a "local" address (UNIX domain socket). */ |