Skip to content

Commit 728d685

Browse files
committed
Add ENOTCAPABLE for macOS
Also updates ELAST to 107 since a new error was added.
1 parent 7634492 commit 728d685

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

libc-test/semver/apple.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,7 @@ ENOPOLICY
358358
ENOSR
359359
ENOSTR
360360
ENOTBLK
361+
ENOTCAPABLE
361362
ENOTRECOVERABLE
362363
ENOTSUP
363364
EOF

src/unix/bsd/apple/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2098,7 +2098,8 @@ pub const ENOPOLICY: c_int = 103;
20982098
pub const ENOTRECOVERABLE: c_int = 104;
20992099
pub const EOWNERDEAD: c_int = 105;
21002100
pub const EQFULL: c_int = 106;
2101-
pub const ELAST: c_int = 106;
2101+
pub const ENOTCAPABLE: c_int = 107;
2102+
pub const ELAST: c_int = 107;
21022103

21032104
pub const EAI_AGAIN: c_int = 2;
21042105
pub const EAI_BADFLAGS: c_int = 3;

0 commit comments

Comments
 (0)