Skip to content

Commit

Permalink
Auto merge of #627 - GuildMasterInfinite:master, r=alexcrichton
Browse files Browse the repository at this point in the history
Add missing Android constant

This pull requests add the `_SC_NPROCESSORS_CONF` constant to `libc` for Android targets. The similar `_SC_NPROCESSORS_ONLN` already existed.

The reason for adding only this constant is to help fix an [issue with `num_cpus`](seanmonstar/num_cpus#34).
  • Loading branch information
bors committed Jun 24, 2017
2 parents 299e3f6 + 93f897a commit 2f28640
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/unix/notbsd/android/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ pub const _SC_THREAD_PRIORITY_SCHEDULING: ::c_int = 82;
pub const _SC_THREAD_PRIO_INHERIT: ::c_int = 83;
pub const _SC_THREAD_PRIO_PROTECT: ::c_int = 84;
pub const _SC_THREAD_SAFE_FUNCTIONS: ::c_int = 85;
pub const _SC_NPROCESSORS_CONF: ::c_int = 96;
pub const _SC_NPROCESSORS_ONLN: ::c_int = 97;

pub const PTHREAD_MUTEX_NORMAL: ::c_int = 0;
Expand Down

0 comments on commit 2f28640

Please sign in to comment.