Skip to content

Commit

Permalink
Add Haiku (BeOS-like OS) support (melonDS-emu#1858)
Browse files Browse the repository at this point in the history
  • Loading branch information
Luca1991 authored Feb 7, 2024
1 parent 5ffa642 commit 646ed3c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 3 additions & 0 deletions src/sha1/sha1.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 646ed3c

Please sign in to comment.