From c35e7f87818d73dd655e74f8c8853ef7ae077054 Mon Sep 17 00:00:00 2001 From: User Vagrant Date: Sat, 19 Dec 2015 18:13:52 +0000 Subject: Update to libc 0.2.4 --- Cargo.toml | 2 +- src/lib.rs | 7 ------- 2 files changed, 1 insertion(+), 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 = result::Result; -- cgit v1.2.3