summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-07-13 18:16:39 +0200
committerMax Kellermann <max@musicpd.org>2018-07-13 18:16:39 +0200
commitd4ce9c0df26c3f21c25049a48836a4fd7eca63a2 (patch)
tree3c9f97b27dd69ca6b1f974cbbc02a6512c93e9ed /src/net
parent680fdb0338c5f30c1113bf1227579a51261098b7 (diff)
system/FileDescriptor: no-op implementation of *CloseOnExec() on Windows
Fixes the NFS client build, closes #305.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/SocketDescriptor.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/SocketDescriptor.hxx b/src/net/SocketDescriptor.hxx
index d42f36fe9..60f6ba5d1 100644
--- a/src/net/SocketDescriptor.hxx
+++ b/src/net/SocketDescriptor.hxx
@@ -90,11 +90,12 @@ public:
return SocketDescriptor(FileDescriptor::Undefined());
}
+ using FileDescriptor::EnableCloseOnExec;
+ using FileDescriptor::DisableCloseOnExec;
+
#ifndef _WIN32
using FileDescriptor::SetNonBlocking;
using FileDescriptor::SetBlocking;
- using FileDescriptor::EnableCloseOnExec;
- using FileDescriptor::DisableCloseOnExec;
using FileDescriptor::Duplicate;
using FileDescriptor::Close;
#else