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 {