Skip to content

Commit

Permalink
Haiku Support (#51)
Browse files Browse the repository at this point in the history
* Haiku

Signed-off-by: Anarchos <[email protected]>
  • Loading branch information
rgrinberg authored Sep 5, 2023
1 parent c72950a commit 23f4cc1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Unreleased

- [haiku] Fix compilation on Haiku OS. The header sys/syscalls.h isn't
available, neither is pipe2()

- Allow setting the sigprocmask for spawned processes (#32)

# v0.15.1
Expand Down
4 changes: 2 additions & 2 deletions src/spawn_stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ CAMLprim value spawn_is_osx()

#include <assert.h>
#include <string.h>
#if !defined(__CYGWIN__)
#if !defined(__CYGWIN__) && !defined(__HAIKU__)
#include <sys/syscall.h>
#endif
#include <sys/types.h>
Expand All @@ -48,7 +48,7 @@ CAMLprim value spawn_is_osx()
| pipe2 |
+-----------------------------------------------------------------+ */

#if defined(__APPLE__)
#if defined(__APPLE__) || defined(__HAIKU__)

/* vfork(2) is deprecated on macOS >= 12, so we use fork(2) instead. */
# if defined(__MAC_OS_X_VERSION_MAX_ALLOWED)
Expand Down

0 comments on commit 23f4cc1

Please sign in to comment.