diff options
author | Max Kellermann <max@musicpd.org> | 2018-07-13 18:16:39 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-07-13 18:16:39 +0200 |
commit | d4ce9c0df26c3f21c25049a48836a4fd7eca63a2 (patch) | |
tree | 3c9f97b27dd69ca6b1f974cbbc02a6512c93e9ed /src/net/SocketDescriptor.hxx | |
parent | 680fdb0338c5f30c1113bf1227579a51261098b7 (diff) |
system/FileDescriptor: no-op implementation of *CloseOnExec() on Windows
Fixes the NFS client build, closes #305.
Diffstat (limited to 'src/net/SocketDescriptor.hxx')
-rw-r--r-- | src/net/SocketDescriptor.hxx | 5 |
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 |