Skip to content

Commit c35e7f8

Browse files
j16rcarllerche
authored andcommitted
Update to libc 0.2.4
1 parent 8d4d60f commit c35e7f8

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ preadv_pwritev = []
2020
signalfd = []
2121

2222
[dependencies]
23-
libc = "0.2.2"
23+
libc = "0.2.4"
2424
bitflags = "0.3.3"
2525

2626
[dev-dependencies]

src/lib.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,7 @@ use std::os::unix::ffi::OsStrExt;
5151
use std::io;
5252
use std::fmt;
5353
use std::error;
54-
55-
#[cfg(any(target_os = "openbsd", target_os = "netbsd", target_os = "bitrig", target_os = "macos", target_os = "ios"))]
5654
use libc::PATH_MAX;
57-
#[cfg(not(any(target_os = "openbsd", target_os = "netbsd", target_os = "bitrig", target_os = "macos", target_os = "ios")))]
58-
const PATH_MAX: c_int = 1024;
59-
60-
61-
6255

6356
pub type Result<T> = result::Result<T, Error>;
6457

0 commit comments

Comments
 (0)