diff options
author | Ed Schouten <ed@nuxi.nl> | 2018-01-02 12:37:34 +0100 |
---|---|---|
committer | Ed Schouten <ed@nuxi.nl> | 2018-01-02 12:37:34 +0100 |
commit | bbaf0426bd9e8349d88a2c7938022a22d43a3215 (patch) | |
tree | 4f49d55681e5ac1e7c3401a88fdb02069d442957 | |
parent | f060d95ffca438d0fe4df220036e6feacf97cab6 (diff) | |
download | rust-libc-bbaf0426bd9e8349d88a2c7938022a22d43a3215.tar.gz |
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.
-rw-r--r-- | src/cloudabi/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cloudabi/mod.rs b/src/cloudabi/mod.rs index 89bd99f28d..bb4b9fa301 100644 --- a/src/cloudabi/mod.rs +++ b/src/cloudabi/mod.rs @@ -55,6 +55,7 @@ s! { } } +pub const _SC_NPROCESSORS_ONLN: ::c_int = 52; pub const _SC_PAGESIZE: ::c_int = 54; pub const AF_INET: ::c_int = 1; |