summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Lerche <me@carllerche.com>2015-02-19 19:30:09 -0800
committerCarl Lerche <me@carllerche.com>2015-02-19 19:30:19 -0800
commit9e137ae8f39b0b982ab32830a587069e265352ff (patch)
tree2a34008a909167c096cab04685d76209647bf06a
parentfd45c22f40cc6a0073f791acdd92779a80f33d9b (diff)
downloadnix-9e137ae8f39b0b982ab32830a587069e265352ff.zip
Re-export std::os::unix::Fd
-rw-r--r--src/fcntl.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/fcntl.rs b/src/fcntl.rs
index ac0e99c2..53d055c0 100644
--- a/src/fcntl.rs
+++ b/src/fcntl.rs
@@ -1,4 +1,4 @@
-use libc::{c_int, mode_t};
+use libc::mode_t;
use errno::Errno;
use {NixError, NixResult, NixPath};
use sys::stat::Mode;
@@ -6,7 +6,8 @@ use sys::stat::Mode;
pub use self::consts::*;
pub use self::ffi::flock;
-pub type Fd = c_int;
+// Re-export Fd defined in std
+pub type Fd = ::std::os::unix::Fd;
#[allow(dead_code)]
mod ffi {