Skip to content

Commit ea64b2c

Browse files
committed
Auto merge of #885 - EdSchouten:nprocessors, r=alexcrichton
Add _SC_NPROCESSORS_ONLN for CloudABI. This constant is not used by the C library, which is why I didn't add it initially. It is, however, used by libtest to determine the parallelism for the execution of tests.
2 parents f060d95 + bbaf042 commit ea64b2c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cloudabi/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ s! {
5555
}
5656
}
5757

58+
pub const _SC_NPROCESSORS_ONLN: ::c_int = 52;
5859
pub const _SC_PAGESIZE: ::c_int = 54;
5960

6061
pub const AF_INET: ::c_int = 1;

0 commit comments

Comments
 (0)