Fix platform

- Add cfg to extern crate sc. It is not used by redox.
 - Fix bad syntax in brk implementation for redox
 - nits
   - style: update brk implementation for linux
   - style: no space between not operator and ptr.is_null
   - style: should be a space around = in module path
This commit is contained in:
Dan Robertson
2018-03-06 13:16:03 +00:00
committed by Dan Robertson
parent a808dfe39c
commit 2096b85115
5 changed files with 41 additions and 81 deletions
+2 -2
View File
@@ -9,11 +9,11 @@ use platform::types::*;
pub use sys::*;
#[cfg(target_os = "linux")]
#[path="linux.rs"]
#[path = "linux.rs"]
pub mod sys;
#[cfg(target_os = "redox")]
#[path="redox.rs"]
#[path = "redox.rs"]
pub mod sys;
pub const F_DUPFD: c_int = 0;