diff --git a/src/lib.rs b/src/lib.rs index f6c19868d1..420682ffc3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -13,12 +13,15 @@ #[macro_use] extern crate bitflags; -pub extern crate libc; - #[cfg(test)] extern crate nix_test as nixtest; +mod exports { + extern crate libc; +} + // Re-exports +pub use exports::libc; pub use libc::{c_int, c_void}; pub use errno::Errno;