File tree Expand file tree Collapse file tree
library/std/src/sys/pal/unix Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -806,9 +806,9 @@ pub mod guard {
806806 #[ cfg( any(
807807 target_os = "android" ,
808808 target_os = "freebsd" ,
809+ target_os = "netbsd" ,
809810 target_os = "hurd" ,
810811 target_os = "linux" ,
811- target_os = "netbsd" ,
812812 target_os = "l4re"
813813 ) ) ]
814814 unsafe fn get_stack_start ( ) -> Option < * mut libc:: c_void > {
@@ -911,9 +911,10 @@ pub mod guard {
911911 }
912912 } ) * page_size;
913913 Some ( guard)
914- } else if cfg ! ( target_os = "openbsd" ) {
914+ } else if cfg ! ( any ( target_os = "openbsd" , target_os = "netbsd" ) ) {
915915 // OpenBSD stack already includes a guard page, and stack is
916916 // immutable.
917+ // NetBSD stack includes the guard page.
917918 //
918919 // We'll just note where we expect rlimit to start
919920 // faulting, so our handler can report "stack overflow", and
You can’t perform that action at this time.
0 commit comments