summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUser Vagrant <jebarker@gmail.com>2015-12-19 18:13:52 +0000
committerCarl Lerche <me@carllerche.com>2016-01-18 21:29:39 -0800
commitc35e7f87818d73dd655e74f8c8853ef7ae077054 (patch)
tree929c425478dcbf0863a05327a9e5180d92425624
parent8d4d60fdda07e4f1d4877d67c47ddf8d8a679349 (diff)
downloadnix-c35e7f87818d73dd655e74f8c8853ef7ae077054.zip
Update to libc 0.2.4
-rw-r--r--Cargo.toml2
-rw-r--r--src/lib.rs7
2 files changed, 1 insertions, 8 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 61f5e1a9..ca5af728 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -20,7 +20,7 @@ preadv_pwritev = []
signalfd = []
[dependencies]
-libc = "0.2.2"
+libc = "0.2.4"
bitflags = "0.3.3"
[dev-dependencies]
diff --git a/src/lib.rs b/src/lib.rs
index 1dcc71ee..6b321ba2 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -51,14 +51,7 @@ use std::os::unix::ffi::OsStrExt;
use std::io;
use std::fmt;
use std::error;
-
-#[cfg(any(target_os = "openbsd", target_os = "netbsd", target_os = "bitrig", target_os = "macos", target_os = "ios"))]
use libc::PATH_MAX;
-#[cfg(not(any(target_os = "openbsd", target_os = "netbsd", target_os = "bitrig", target_os = "macos", target_os = "ios")))]
-const PATH_MAX: c_int = 1024;
-
-
-
pub type Result<T> = result::Result<T, Error>;