From a220b65436676d773c604b5a9257ed3e51539d7f Mon Sep 17 00:00:00 2001 From: Steve Lau Date: Sun, 28 Apr 2024 07:30:22 +0800 Subject: [PATCH] feat: MIN_HOLE_SIZE for apple targets --- Cargo.toml | 2 +- changelog/2388.added.md | 1 + src/unistd.rs | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelog/2388.added.md diff --git a/Cargo.toml b/Cargo.toml index adaf31f0fd..6707429d53 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,7 +28,7 @@ targets = [ ] [dependencies] -libc = { version = "0.2.153", features = ["extra_traits"] } +libc = { git = "https://github.com/rust-lang/libc", branch = "libc-0.2", features = ["extra_traits"] } bitflags = "2.3.1" cfg-if = "1.0" pin-utils = { version = "0.1.0", optional = true } diff --git a/changelog/2388.added.md b/changelog/2388.added.md new file mode 100644 index 0000000000..b70769d4af --- /dev/null +++ b/changelog/2388.added.md @@ -0,0 +1 @@ +Added `PathconfVar::MIN_HOLE_SIZE` for apple_targets. \ No newline at end of file diff --git a/src/unistd.rs b/src/unistd.rs index 9e98ba7897..58ede6eb9b 100644 --- a/src/unistd.rs +++ b/src/unistd.rs @@ -2046,6 +2046,7 @@ pub enum PathconfVar { /// may require to be typed as input before reading them. MAX_INPUT = libc::_PC_MAX_INPUT, #[cfg(any( + apple_targets, solarish, freebsdlike, target_os = "netbsd",