Skip to content

Commit

Permalink
Merge pull request ClickHouse#61701 from oxidecomputer/7,37/poco-illumos
Browse files Browse the repository at this point in the history
poco foundation: add illumos support
  • Loading branch information
alexey-milovidov authored Mar 22, 2024
2 parents 03a4b5f + 6e260d9 commit 270879e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
6 changes: 3 additions & 3 deletions base/poco/Foundation/src/Environment_UNIX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,15 +281,15 @@ void EnvironmentImpl::nodeIdImpl(NodeId& id)
/// #include <sys/ioctl.h>
#if defined(sun) || defined(__sun)
#include <sys/sockio.h>
#include <netdb.h>
#include <net/if.h>
#include <net/if_arp.h>
#endif
/// #include <sys/socket.h>
/// #include <sys/types.h>
/// #include <netinet/in.h>
/// #include <net/if.h>
/// #include <arpa/inet.h>
/// #include <netdb.h>
/// #include <net/if.h>
/// #include <net/if_arp.h>
/// #include <unistd.h>


Expand Down
2 changes: 1 addition & 1 deletion base/poco/Foundation/src/NamedEvent_UNIX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
namespace Poco {


#if (POCO_OS == POCO_OS_LINUX) || (POCO_OS == POCO_OS_ANDROID) || (POCO_OS == POCO_OS_CYGWIN) || (POCO_OS == POCO_OS_FREE_BSD)
#if (POCO_OS == POCO_OS_LINUX) || (POCO_OS == POCO_OS_ANDROID) || (POCO_OS == POCO_OS_CYGWIN) || (POCO_OS == POCO_OS_FREE_BSD) || (POCO_OS == POCO_OS_SOLARIS)
union semun
{
int val;
Expand Down
2 changes: 1 addition & 1 deletion base/poco/Foundation/src/NamedMutex_UNIX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
namespace Poco {


#if (POCO_OS == POCO_OS_LINUX) || (POCO_OS == POCO_OS_ANDROID) || (POCO_OS == POCO_OS_CYGWIN) || (POCO_OS == POCO_OS_FREE_BSD)
#if (POCO_OS == POCO_OS_LINUX) || (POCO_OS == POCO_OS_ANDROID) || (POCO_OS == POCO_OS_CYGWIN) || (POCO_OS == POCO_OS_FREE_BSD) || (POCO_OS == POCO_OS_SOLARIS)
union semun
{
int val;
Expand Down
4 changes: 4 additions & 0 deletions base/poco/Net/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ elseif (OS_DARWIN OR OS_FREEBSD)
target_compile_definitions (_poco_net PUBLIC POCO_HAVE_FD_POLL)
endif ()

if (OS_SUNOS)
target_link_libraries (_poco_net PUBLIC socket nsl)
endif ()

# TODO: remove these warning exclusions
target_compile_options (_poco_net
PRIVATE
Expand Down

0 comments on commit 270879e

Please sign in to comment.