From 62a68791ff7131363a642921a70a7e7719aa16a5 Mon Sep 17 00:00:00 2001 From: coolcoder613eb <96163908+coolcoder613eb@users.noreply.github.com> Date: Thu, 1 Jan 2026 22:05:17 +1100 Subject: [PATCH] add Haiku support --- src/backends/mod.rs | 1 + src/backends/unix.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backends/mod.rs b/src/backends/mod.rs index 8da895d..27999c0 100644 --- a/src/backends/mod.rs +++ b/src/backends/mod.rs @@ -11,6 +11,7 @@ cfg_if! { target_os = "netbsd", target_os = "freebsd", target_os = "dragonfly", + target_os = "haiku", target_os = "illumos" ))] { mod unix; diff --git a/src/backends/unix.rs b/src/backends/unix.rs index 97ef209..b815c93 100644 --- a/src/backends/unix.rs +++ b/src/backends/unix.rs @@ -1,6 +1,6 @@ #[cfg(any(target_os = "freebsd", target_os = "dragonfly", target_os = "illumos"))] use libc::pthread_attr_get_np as get_attr; -#[cfg(any(target_os = "linux", target_os = "solaris", target_os = "netbsd"))] +#[cfg(any(target_os = "linux", target_os = "solaris", target_os = "netbsd", target_os = "haiku"))] use libc::pthread_getattr_np as get_attr; pub unsafe fn guess_os_stack_limit() -> Option {