From 9415450aced4b9592efddd98da97f54ee8acd9fa Mon Sep 17 00:00:00 2001 From: Michael Neumann Date: Sun, 1 Nov 2015 22:56:31 +0100 Subject: [PATCH] Use guard-pages also on DragonFly/FreeBSD. Only tested on DragonFly. --- src/libstd/sys/unix/stack_overflow.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libstd/sys/unix/stack_overflow.rs b/src/libstd/sys/unix/stack_overflow.rs index f5fd11b61b1..5f624bc76b3 100644 --- a/src/libstd/sys/unix/stack_overflow.rs +++ b/src/libstd/sys/unix/stack_overflow.rs @@ -34,6 +34,8 @@ impl Drop for Handler { #[cfg(any(target_os = "linux", target_os = "macos", target_os = "bitrig", + target_os = "dragonfly", + target_os = "freebsd", all(target_os = "netbsd", not(target_vendor = "rumprun")), target_os = "openbsd"))] mod imp { @@ -143,6 +145,8 @@ mod imp { #[cfg(not(any(target_os = "linux", target_os = "macos", target_os = "bitrig", + target_os = "dragonfly", + target_os = "freebsd", all(target_os = "netbsd", not(target_vendor = "rumprun")), target_os = "openbsd")))] mod imp {