fix(Net): Add POCO_HAS_UNIX_SOCKET guards to fix build without Unix sockets #5064

This commit is contained in:
Matej Kenda
2025-12-15 21:39:38 +01:00
parent edd582249d
commit 227f84fb8b
6 changed files with 9 additions and 12 deletions

View File

@@ -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&)