diff options
Diffstat (limited to 'src/libtest')
| -rw-r--r-- | src/libtest/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libtest/lib.rs b/src/libtest/lib.rs index 130ce3a9637..e92c8ceb51e 100644 --- a/src/libtest/lib.rs +++ b/src/libtest/lib.rs @@ -927,7 +927,8 @@ fn get_concurrency() -> usize { #[cfg(any(target_os = "linux", target_os = "macos", target_os = "ios", - target_os = "android"))] + target_os = "android", + target_os = "sunos"))] fn num_cpus() -> usize { unsafe { libc::sysconf(libc::_SC_NPROCESSORS_ONLN) as usize } } |
