diff --git a/Cargo.toml b/Cargo.toml index 306d990..5c33c19 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,7 +20,7 @@ test = false [dependencies] cfg-if = "1.0.0" -libc = "0.2.45" +libc = "0.2.156" psm = { path = "psm", version = "0.1.7" } [target.'cfg(windows)'.dependencies.windows-sys] diff --git a/src/lib.rs b/src/lib.rs index eaef9f1..d8a1971 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -419,7 +419,7 @@ cfg_if! { assert_eq!(libc::pthread_attr_destroy(attr.as_mut_ptr()), 0); Some(stackaddr as usize) } - } else if #[cfg(any(target_os = "freebsd", target_os = "dragonfly"))] { + } else if #[cfg(any(target_os = "freebsd", target_os = "dragonfly", target_os = "illumos"))] { unsafe fn guess_os_stack_limit() -> Option { let mut attr = std::mem::MaybeUninit::::uninit(); assert_eq!(libc::pthread_attr_init(attr.as_mut_ptr()), 0);