move OS specifics into sys

This commit is contained in:
edef 2015-04-16 05:49:34 -04:00
parent 2c3a203f57
commit 52c0c92cd8
4 changed files with 8 additions and 3 deletions

View File

@ -26,3 +26,5 @@ mod arch;
#[cfg(feature = "os")]
pub mod os;
#[cfg(feature = "os")]
mod sys;

View File

@ -2,9 +2,7 @@ extern crate std;
use core::prelude::*;
use self::std::io::Error as IoError;
use stack;
#[cfg(unix)]
#[path = "os/unix.rs"] mod sys;
use sys;
pub struct StackSource;

5
src/sys/mod.rs Normal file
View File

@ -0,0 +1,5 @@
pub use self::imp::*;
#[cfg(unix)]
#[path = "unix.rs"]
mod imp;