Skip to content

Net: Build fails when POCO_HAS_UNIX_SOCKET is not defined #5064

@cvignolles

Description

@cvignolles

With version 1.14.2
On Windows
When POCO_HAS_UNIX_SOCKET is usually not defined
Poco Net fails to build

In 'void HTTPSession::connect(const SocketAddress& address)'
line 'if (address.family() != SocketAddress::UNIX_LOCAL)'
Build fail because UNIX_LOCAL isn't defined and not protected by #if defined(POCO_HAS_UNIX_SOCKET)

In void SocketAddress::init(const std::string& hostAndPort)
line 'newLocal(hostAndPort);'
Build fail because newLocal methods are defined only if POCO_HAS_UNIX_SOCKET is defined, instead of guard the content of the methods.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions