diff options
author | Max Kellermann <max@musicpd.org> | 2017-08-10 13:18:59 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2017-08-10 13:19:47 +0200 |
commit | 73b15c1beeac4cdd78d5ac2226e7e8c7f2c4284d (patch) | |
tree | 4d674376a56bc72f6080ecb9fcac672075990aba /src/net/SocketDescriptor.hxx | |
parent | b180604422a1444c1d61456b7247854f8ceb4680 (diff) |
net/SocketDescriptor: socketpair() is unavailable on Windows
Diffstat (limited to 'src/net/SocketDescriptor.hxx')
-rw-r--r-- | src/net/SocketDescriptor.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/net/SocketDescriptor.hxx b/src/net/SocketDescriptor.hxx index 2ef7dc2f2..d439e7068 100644 --- a/src/net/SocketDescriptor.hxx +++ b/src/net/SocketDescriptor.hxx @@ -125,10 +125,12 @@ public: */ bool CreateNonBlock(int domain, int type, int protocol); +#ifndef _WIN32 static bool CreateSocketPair(int domain, int type, int protocol, SocketDescriptor &a, SocketDescriptor &b); static bool CreateSocketPairNonBlock(int domain, int type, int protocol, SocketDescriptor &a, SocketDescriptor &b); +#endif int GetError(); |