From 0f49a9ff5b76d9f880fcef405a1345eb71c5799b Mon Sep 17 00:00:00 2001 From: begasus Date: Wed, 7 Jul 2021 12:26:20 +0000 Subject: [PATCH] Haiku build fixes Signed-off-by: begasus --- src/CMakeLists.txt | 2 ++ src/conf_includedir.c | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 92ff0ca2..bde06b98 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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) diff --git a/src/conf_includedir.c b/src/conf_includedir.c index b602f963..a2de7844 100644 --- a/src/conf_includedir.c +++ b/src/conf_includedir.c @@ -37,7 +37,9 @@ Contributors: # include #endif -#if !defined(WIN32) && !defined(__CYGWIN__) && !defined(__QNX__) +#if defined(__HAIKU__) +# include +#elif !defined(WIN32) && !defined(__CYGWIN__) && !defined(__QNX__) # include #endif