summaryrefslogtreecommitdiff
path: root/src/net/SocketDescriptor.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-08-10 13:23:14 +0200
committerMax Kellermann <max@musicpd.org>2017-08-10 13:23:14 +0200
commitd2cdaa041cf9759f7e133663beab505ccee8e05a (patch)
tree792753aaefbc0a394d6ad4a674d7bfc4ba82e9be /src/net/SocketDescriptor.cxx
parentd84dae488e7080495898bc24dea95d5b173873c2 (diff)
net/SocketDescriptor: SO_REUSEADDR is portable
Diffstat (limited to 'src/net/SocketDescriptor.cxx')
-rw-r--r--src/net/SocketDescriptor.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/SocketDescriptor.cxx b/src/net/SocketDescriptor.cxx
index e0cf9d56a..9a3b97c9d 100644
--- a/src/net/SocketDescriptor.cxx
+++ b/src/net/SocketDescriptor.cxx
@@ -206,14 +206,14 @@ SocketDescriptor::SetOption(int level, int name,
return setsockopt(fd, level, name, (const char *)value, size) == 0;
}
-#ifdef __linux__
-
bool
SocketDescriptor::SetReuseAddress(bool value)
{
return SetBoolOption(SOL_SOCKET, SO_REUSEADDR, value);
}
+#ifdef __linux__
+
#ifdef SO_REUSEPORT
bool