Skip to content

Commit 2f28640

Browse files
committed
Auto merge of #627 - GuildMasterInfinite:master, r=alexcrichton
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).
2 parents 299e3f6 + 93f897a commit 2f28640

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/unix/notbsd/android/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ pub const _SC_THREAD_PRIORITY_SCHEDULING: ::c_int = 82;
254254
pub const _SC_THREAD_PRIO_INHERIT: ::c_int = 83;
255255
pub const _SC_THREAD_PRIO_PROTECT: ::c_int = 84;
256256
pub const _SC_THREAD_SAFE_FUNCTIONS: ::c_int = 85;
257+
pub const _SC_NPROCESSORS_CONF: ::c_int = 96;
257258
pub const _SC_NPROCESSORS_ONLN: ::c_int = 97;
258259

259260
pub const PTHREAD_MUTEX_NORMAL: ::c_int = 0;

0 commit comments

Comments
 (0)