aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuca D'Amico <damico.luca91@live.it>2024-02-07 23:15:30 +0100
committerGitHub <noreply@github.com>2024-02-07 23:15:30 +0100
commit646ed3cb321633a430ae9cbc6428177d132378f5 (patch)
treeaee9c8c12e0bc5c5d1f49effcee9be57b2afda92 /src
parent5ffa6429804a5668edf198a26a1595c170149798 (diff)
Add Haiku (BeOS-like OS) support (#1858)
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt4
-rw-r--r--src/sha1/sha1.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index afabc03..3dfd3b0 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -154,11 +154,13 @@ endif()
if (WIN32)
target_link_libraries(core PRIVATE ole32 comctl32 wsock32 ws2_32)
-elseif(NOT APPLE)
+elseif(NOT APPLE AND NOT HAIKU)
check_library_exists(rt shm_open "" NEED_LIBRT)
if (NEED_LIBRT)
target_link_libraries(core PRIVATE rt)
endif()
+elseif(HAIKU)
+ target_link_libraries(core PRIVATE network)
endif()
if (ENABLE_JIT_PROFILING)
diff --git a/src/sha1/sha1.c b/src/sha1/sha1.c
index c0052b7..c34ace3 100644
--- a/src/sha1/sha1.c
+++ b/src/sha1/sha1.c
@@ -27,6 +27,9 @@ A million repetitions of "a"
#if defined(__sun)
#include "solarisfixes.h"
#endif
+#if defined(__HAIKU__)
+#include <ByteOrder.h>
+#endif
#include "sha1.h"
#ifndef BYTE_ORDER