Skip to content

Commit 66e0bf1

Browse files
committed
pub unix
1 parent efc8c95 commit 66e0bf1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/lib.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ cfg_if! {
146146
pub type ssize_t = isize;
147147
pub enum FILE {}
148148
pub enum fpos_t {} // TODO: fill this out with a struct
149-
pub const EPOLLRDHUP: c_int = 8192;
150149
extern {
151150
pub fn isalnum(c: c_int) -> c_int;
152151
pub fn isalpha(c: c_int) -> c_int;
@@ -279,7 +278,10 @@ cfg_if! {
279278
}
280279

281280
cfg_if! {
282-
if #[cfg(windows)] {
281+
if#[cfg(target_os = "solaris")] {
282+
mod unix;
283+
pub use unix::*;
284+
} else if #[cfg(windows)] {
283285
mod windows;
284286
pub use windows::*;
285287
} else if #[cfg(target_os = "redox")] {
@@ -296,5 +298,7 @@ cfg_if! {
296298
pub use unix::*;
297299
} else {
298300
// Unknown target_family
301+
mod unix;
302+
pub use unix::*;
299303
}
300304
}

0 commit comments

Comments
 (0)