Haiku build fixes

Signed-off-by: begasus <begasus@gmail.com>
pull/2247/head
begasus 4 years ago
parent a224a8f217
commit 0f49a9ff5b

@ -154,6 +154,8 @@ if (UNIX)
set (MOSQ_LIBS ${MOSQ_LIBS} m) set (MOSQ_LIBS ${MOSQ_LIBS} m)
elseif (${CMAKE_SYSTEM_NAME} MATCHES "NetBSD") elseif (${CMAKE_SYSTEM_NAME} MATCHES "NetBSD")
set (MOSQ_LIBS ${MOSQ_LIBS} m) set (MOSQ_LIBS ${MOSQ_LIBS} m)
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Haiku")
set (MOSQ_LIBS ${MOSQ_LIBS} m network)
elseif(QNX) elseif(QNX)
set(MOSQ_LIBS ${MOSQ_LIBS} m socket) set(MOSQ_LIBS ${MOSQ_LIBS} m socket)
else(APPLE) else(APPLE)

@ -37,7 +37,9 @@ Contributors:
# include <ws2tcpip.h> # include <ws2tcpip.h>
#endif #endif
#if !defined(WIN32) && !defined(__CYGWIN__) && !defined(__QNX__) #if defined(__HAIKU__)
# include <syslog.h>
#elif !defined(WIN32) && !defined(__CYGWIN__) && !defined(__QNX__)
# include <sys/syslog.h> # include <sys/syslog.h>
#endif #endif

Loading…
Cancel
Save