Skip to content

Commit e524c40

Browse files
authored
feat: MIN_HOLE_SIZE for apple targets (#2388)
1 parent e99e74c commit e524c40

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ targets = [
2828
]
2929

3030
[dependencies]
31-
libc = { version = "0.2.153", features = ["extra_traits"] }
31+
libc = { git = "https://github.com/rust-lang/libc", branch = "libc-0.2", features = ["extra_traits"] }
3232
bitflags = "2.3.1"
3333
cfg-if = "1.0"
3434
pin-utils = { version = "0.1.0", optional = true }

changelog/2388.added.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Added `PathconfVar::MIN_HOLE_SIZE` for apple_targets.

src/unistd.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2046,6 +2046,7 @@ pub enum PathconfVar {
20462046
/// may require to be typed as input before reading them.
20472047
MAX_INPUT = libc::_PC_MAX_INPUT,
20482048
#[cfg(any(
2049+
apple_targets,
20492050
solarish,
20502051
freebsdlike,
20512052
target_os = "netbsd",

0 commit comments

Comments
 (0)