mirror of
https://github.com/pocoproject/poco.git
synced 2026-01-02 10:43:22 +01:00
fix(Net): Add POCO_HAS_UNIX_SOCKET guards to fix build without Unix sockets #5064
This commit is contained in:
@@ -47,7 +47,9 @@ WebSocketImpl::WebSocketImpl(StreamSocketImpl* pStreamSocketImpl, HTTPSession& s
|
||||
// for small WebSocket frames. Skip for Unix domain sockets.
|
||||
try
|
||||
{
|
||||
#if defined(POCO_HAS_UNIX_SOCKET)
|
||||
if (_pStreamSocketImpl->address().family() != SocketAddress::UNIX_LOCAL)
|
||||
#endif
|
||||
_pStreamSocketImpl->setNoDelay(true);
|
||||
}
|
||||
catch (NetException&)
|
||||
|
||||
Reference in New Issue
Block a user