Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 883bb65

Browse files
committedApr 13, 2015
remove duplicated linux sysconf mod
1 parent 6f54ce9 commit 883bb65

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed
 

‎src/liblibc/lib.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3729,12 +3729,14 @@ pub mod consts {
37293729
pub const _SC_2_FORT_RUN : c_int = 50;
37303730
pub const _SC_2_SW_DEV : c_int = 51;
37313731
pub const _SC_2_LOCALEDEF : c_int = 52;
3732+
pub const _SC_NPROCESSORS_ONLN : c_int = 84;
37323733
pub const _SC_2_CHAR_TERM : c_int = 95;
37333734
pub const _SC_2_C_VERSION : c_int = 96;
37343735
pub const _SC_2_UPE : c_int = 97;
37353736
pub const _SC_XBS5_ILP32_OFF32 : c_int = 125;
37363737
pub const _SC_XBS5_ILP32_OFFBIG : c_int = 126;
37373738
pub const _SC_XBS5_LPBIG_OFFBIG : c_int = 128;
3739+
37383740
}
37393741
#[cfg(target_os = "nacl")]
37403742
pub mod sysconf {
@@ -3745,12 +3747,6 @@ pub mod consts {
37453747
pub static _SC_PAGESIZE : c_int = 2;
37463748
}
37473749

3748-
#[cfg(target_os = "linux")]
3749-
pub mod sysconf {
3750-
use types::os::arch::c95::c_int;
3751-
pub static _SC_NPROCESSORS_ONLN : c_int = 84;
3752-
}
3753-
37543750
#[cfg(target_os = "macos")]
37553751
pub mod sysconf {
37563752
use types::os::arch::c95::c_int;

0 commit comments

Comments
 (0)
Please sign in to comment.