Skip to content

Commit

Permalink
Haiku build fixes
Browse files Browse the repository at this point in the history
Signed-off-by: begasus <[email protected]>
  • Loading branch information
Begasus committed Jul 7, 2021
1 parent a224a8f commit 0f49a9f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ if (UNIX)
set (MOSQ_LIBS ${MOSQ_LIBS} m)
elseif (${CMAKE_SYSTEM_NAME} MATCHES "NetBSD")
set (MOSQ_LIBS ${MOSQ_LIBS} m)
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Haiku")
set (MOSQ_LIBS ${MOSQ_LIBS} m network)
elseif(QNX)
set(MOSQ_LIBS ${MOSQ_LIBS} m socket)
else(APPLE)
Expand Down
4 changes: 3 additions & 1 deletion src/conf_includedir.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ and the Eclipse Distribution License is available at
# include <ws2tcpip.h>
#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>
#endif

Expand Down

0 comments on commit 0f49a9f

Please sign in to comment.