summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorJonas Schievink <jonasschievink@gmail.com>2017-07-20 17:57:20 +0200
committerJonas Schievink <jonasschievink@gmail.com>2017-07-20 17:57:20 +0200
commit39f3372a9e3f7a57a16938aaa15c97d061d5feee (patch)
tree6fc1895c399742eaf1377f2c9ae7a029ee331b54 /src/lib.rs
parentf8406b8d6244eec0d0870d6fbdfef1671a8ed8ae (diff)
downloadnix-39f3372a9e3f7a57a16938aaa15c97d061d5feee.zip
Remove workaround for `pub extern crate`
On semi-recent Rust versions (I think 1.8+) this now works properly.
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/lib.rs b/src/lib.rs
index f0cdb581..60dd1eef 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -23,13 +23,7 @@ extern crate nix_test as nixtest;
#[macro_use] mod macros;
-// In rust 1.8+ this should be `pub extern crate libc` but prior
-// to https://github.com/rust-lang/rust/issues/26775 being resolved
-// it is necessary to get a little creative.
-pub mod libc {
- extern crate libc;
- pub use self::libc::*;
-}
+pub extern crate libc;
pub use libc::{c_int, c_void};
pub use errno::Errno;