From 728d685147d3ae4c4e84d2ea78e028f1bb0d9753 Mon Sep 17 00:00:00 2001 From: Thomas de Zeeuw Date: Mon, 12 Jan 2026 22:24:35 +0100 Subject: [PATCH] Add ENOTCAPABLE for macOS Also updates ELAST to 107 since a new error was added. --- libc-test/semver/apple.txt | 1 + src/unix/bsd/apple/mod.rs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libc-test/semver/apple.txt b/libc-test/semver/apple.txt index 3bc827f8d849c..7a500294f47f2 100644 --- a/libc-test/semver/apple.txt +++ b/libc-test/semver/apple.txt @@ -358,6 +358,7 @@ ENOPOLICY ENOSR ENOSTR ENOTBLK +ENOTCAPABLE ENOTRECOVERABLE ENOTSUP EOF diff --git a/src/unix/bsd/apple/mod.rs b/src/unix/bsd/apple/mod.rs index 7b084251d3b8e..baf15d3047d51 100644 --- a/src/unix/bsd/apple/mod.rs +++ b/src/unix/bsd/apple/mod.rs @@ -2098,7 +2098,8 @@ pub const ENOPOLICY: c_int = 103; pub const ENOTRECOVERABLE: c_int = 104; pub const EOWNERDEAD: c_int = 105; pub const EQFULL: c_int = 106; -pub const ELAST: c_int = 106; +pub const ENOTCAPABLE: c_int = 107; +pub const ELAST: c_int = 107; pub const EAI_AGAIN: c_int = 2; pub const EAI_BADFLAGS: c_int = 3;