Skip to content

Commit 685bef7

Browse files
add Haiku support (#135)
1 parent bc775cf commit 685bef7

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/backends/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ cfg_if! {
1111
target_os = "netbsd",
1212
target_os = "freebsd",
1313
target_os = "dragonfly",
14+
target_os = "haiku",
1415
target_os = "illumos"
1516
))] {
1617
mod unix;

src/backends/unix.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#[cfg(any(target_os = "freebsd", target_os = "dragonfly", target_os = "illumos"))]
22
use libc::pthread_attr_get_np as get_attr;
3-
#[cfg(any(target_os = "linux", target_os = "solaris", target_os = "netbsd"))]
3+
#[cfg(any(target_os = "linux", target_os = "solaris", target_os = "netbsd", target_os = "haiku"))]
44
use libc::pthread_getattr_np as get_attr;
55

66
pub unsafe fn guess_os_stack_limit() -> Option<usize> {

0 commit comments

Comments
 (0)