Skip to content

Commit 754c7e1

Browse files
papertigersXudong-Huang
authored andcommitted
Add support for illumos/solaris
1 parent 4e21936 commit 754c7e1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/stack/unix.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,19 @@ use super::SysStack;
1212
target_os = "openbsd",
1313
target_os = "macos",
1414
target_os = "ios",
15-
target_os = "android"
15+
target_os = "android",
16+
target_os = "illumos",
17+
target_os = "solaris"
1618
))]
1719
const MAP_STACK: libc::c_int = 0;
1820

1921
#[cfg(not(any(
2022
target_os = "openbsd",
2123
target_os = "macos",
2224
target_os = "ios",
23-
target_os = "android"
25+
target_os = "android",
26+
target_os = "illumos",
27+
target_os = "solaris"
2428
)))]
2529
const MAP_STACK: libc::c_int = libc::MAP_STACK;
2630

0 commit comments

Comments
 (0)