Skip to content

Commit fb9c2c0

Browse files
committed
explicit use libc to refer to HW_NCPU
1 parent 5178449 commit fb9c2c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libtest/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,7 @@ fn get_concurrency() -> usize {
933933
0 as *mut _, 0);
934934
}
935935
if cpus < 1 {
936-
mib[1] = HW_NCPU;
936+
mib[1] = libc::HW_NCPU;
937937
unsafe {
938938
libc::sysctl(mib.as_mut_ptr(), 2,
939939
&mut cpus as *mut _ as *mut _,

0 commit comments

Comments
 (0)