1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

Subject: Fixes to build on FreeBSD and Illumos

This commit is contained in:
Mike Owens 2020-08-08 20:09:40 -05:00 committed by Andy Green
parent 1f0cd18dd6
commit e3b34d3e08
3 changed files with 4 additions and 2 deletions

View file

@ -329,6 +329,9 @@ endif(UNIX)
export_to_parent_intermediate()
if (DEFINED LWS_PLAT_UNIX)
set(LWS_PLAT_UNIX ${LWS_PLAT_UNIX} PARENT_SCOPE)
if (ILLUMOS)
add_definitions("-D__illumos__")
endif()
endif()
set(LWS_HAVE_MBEDTLS_NET_SOCKETS ${LWS_HAVE_MBEDTLS_NET_SOCKETS} PARENT_SCOPE)
set(TEST_SERVER_SSL_KEY "${TEST_SERVER_SSL_KEY}" PARENT_SCOPE)

View file

@ -30,7 +30,7 @@
static const char *library_version = LWS_LIBRARY_VERSION;
#if defined(__linux__)
#if defined(__linux__) || defined(__FreeBSD__) || defined(__illumos__)
/* for setrlimit */
#include <sys/resource.h>
#endif

View file

@ -37,7 +37,6 @@ execute_process( COMMAND grep -c illumos /lib/ld.so.1
string(REGEX REPLACE "[\n]+" "" ILLUMOS "${ILLUMOS}")
if (NOT ${ILLUMOS} MATCHES "0")
add_definitions( "-D__illumos__" )
set(ILLUMOS 1)
endif()