diff options
| author | Dave Huseby <dhuseby@mozilla.com> | 2015-02-06 17:59:35 -0800 |
|---|---|---|
| committer | Dave Huseby <dhuseby@mozilla.com> | 2015-02-11 14:49:11 -0800 |
| commit | 47ad1cdf564eb9488df9316f13eed710996d2277 (patch) | |
| tree | 2bd329438888ecc6972939839f02f8171fa9acfc /src/libstd | |
| parent | 2ece7a6831ed3cc034ff0526236c68d92b1b7510 (diff) | |
| download | rust-47ad1cdf564eb9488df9316f13eed710996d2277.tar.gz rust-47ad1cdf564eb9488df9316f13eed710996d2277.zip | |
fixing PR review comments
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/sys/unix/c.rs | 8 | ||||
| -rw-r--r-- | src/libstd/sys/unix/stack_overflow.rs | 5 |
2 files changed, 4 insertions, 9 deletions
diff --git a/src/libstd/sys/unix/c.rs b/src/libstd/sys/unix/c.rs index 06e5333239e..2da9c2f9d86 100644 --- a/src/libstd/sys/unix/c.rs +++ b/src/libstd/sys/unix/c.rs @@ -307,8 +307,7 @@ mod signal { #[cfg(any(target_os = "macos", target_os = "ios", target_os = "freebsd", - target_os = "dragonfly", - target_os = "openbsd"))] + target_os = "dragonfly"))] mod signal { use libc; @@ -322,8 +321,7 @@ mod signal { pub const SIGCHLD: libc::c_int = 20; #[cfg(any(target_os = "macos", - target_os = "ios", - target_os = "openbsd"))] + target_os = "ios"))] pub type sigset_t = u32; #[cfg(any(target_os = "freebsd", target_os = "dragonfly"))] #[repr(C)] @@ -351,7 +349,7 @@ mod signal { } } -#[cfg(target_os = "bitrig")] +#[cfg(any(target_os = "bitrig", target_os = "openbsd"))] mod signal { use libc; diff --git a/src/libstd/sys/unix/stack_overflow.rs b/src/libstd/sys/unix/stack_overflow.rs index 04dd36a24ab..c2044c502b7 100644 --- a/src/libstd/sys/unix/stack_overflow.rs +++ b/src/libstd/sys/unix/stack_overflow.rs @@ -219,10 +219,7 @@ mod imp { #[cfg(target_os = "macos")] pub const SIGSTKSZ: libc::size_t = 131072; - #[cfg(target_os = "openbsd")] - pub const SIGSTKSZ: libc::size_t = 40960; - - #[cfg(target_os = "bitrig")] + #[cfg(any(target_os = "bitrig", target_os = "openbsd"))] pub const SIGSTKSZ: libc::size_t = 40960; pub const SIG_DFL: sighandler_t = 0 as sighandler_t; |
