about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorMichael Neumann <mneumann@ntecs.de>2015-11-01 22:56:31 +0100
committerMichael Neumann <mneumann@ntecs.de>2015-11-01 22:56:31 +0100
commit9415450aced4b9592efddd98da97f54ee8acd9fa (patch)
tree419f8d596dd2ffbf69d5317d8a1fb3cbee6d3a54 /src/libstd/sys/unix/stack_overflow.rs
parenta5fbb3a25faeb08f50f571a6aa227f14a9d086c2 (diff)
downloadrust-9415450aced4b9592efddd98da97f54ee8acd9fa.tar.gz
rust-9415450aced4b9592efddd98da97f54ee8acd9fa.zip
Use guard-pages also on DragonFly/FreeBSD.
Only tested on DragonFly.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
-rw-r--r--src/libstd/sys/unix/stack_overflow.rs4
1 files changed, 4 insertions, 0 deletions
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 {