Skip to content

Commit 41e2f81

Browse files
extrowerkSteveLauC
andauthored
fix: make nix build on Illumos (#2694)
* Illumos patches * changelog * Disable mod sys/resource on Solaris Looks like Solaris does not have them according to our CI [1] [1]: https://github.com/nix-rust/nix/actions/runs/19349070659/job/55356544189?pr=2694 --------- Co-authored-by: Steve Lau <stevelauc@outlook.com>
1 parent abbcdf0 commit 41e2f81

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

changelog/2694.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix the build on Illumos

src/sys/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ feature! {
9696
#[cfg(not(any(
9797
target_os = "redox",
9898
target_os = "fuchsia",
99-
solarish,
99+
target_os = "solaris",
100100
target_os = "haiku"
101101
)))]
102102
feature! {

src/sys/resource.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ cfg_if! {
1919
bsd,
2020
target_os = "android",
2121
target_os = "aix",
22+
target_os = "illumos",
2223
all(target_os = "linux", not(target_env = "gnu")),
2324
target_os = "cygwin"
2425
))]{
@@ -50,6 +51,7 @@ libc_enum! {
5051
bsd,
5152
target_os = "android",
5253
target_os = "aix",
54+
target_os = "illumos",
5355
all(target_os = "linux", not(any(target_env = "gnu", target_env = "uclibc"))),
5456
target_os = "cygwin"
5557
), repr(i32))]

0 commit comments

Comments
 (0)