Add unsupported build support for Haiku

This commit is contained in:
Jason Turner 2014-05-27 06:51:38 +00:00
parent e5d723621f
commit b4ea27d28a
2 changed files with 2 additions and 2 deletions

View File

@ -163,7 +163,7 @@ if(NOT MULTITHREAD_SUPPORT_ENABLED)
endif()
if(CMAKE_HOST_UNIX)
if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "Haiku")
list(APPEND LIBS "dl")
endif()

View File

@ -30,7 +30,7 @@
#include "../dispatchkit/proxy_functions.hpp"
#include "chaiscript_common.hpp"
#if defined(__linux__) || defined(__unix__) || defined(__APPLE__)
#if defined(__linux__) || defined(__unix__) || defined(__APPLE__) || defined(__HAIKU__)
#include <unistd.h>
#endif