Skip to content

Commit cd759f1

Browse files
committed
Add Apple RTF_DEAD and RTF_GLOBAL
RTF_DEAD was added in macOS 10.13. RTF_GLOBAL was added in macOS 11.0.
1 parent d0ebfae commit cd759f1

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

libc-test/build.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,8 @@ fn test_apple(target: &str) {
299299
"SF_SETTABLE" => true,
300300
// FIXME: the values have been changed since Big Sur
301301
"HW_TARGET" | "HW_PRODUCT" | "HW_MAXID" => true,
302+
// this const requires macOS 11.0 or higher
303+
"RTF_GLOBAL" => true,
302304
_ => false,
303305
}
304306
});

libc-test/semver/apple.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,10 +1043,12 @@ RTF_BLACKHOLE
10431043
RTF_BROADCAST
10441044
RTF_CLONING
10451045
RTF_CONDEMNED
1046+
RTF_DEAD
10461047
RTF_DELCLONE
10471048
RTF_DONE
10481049
RTF_DYNAMIC
10491050
RTF_GATEWAY
1051+
RTF_GLOBAL
10501052
RTF_HOST
10511053
RTF_IFREF
10521054
RTF_IFSCOPE

src/unix/bsd/apple/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4229,6 +4229,8 @@ pub const RTF_CONDEMNED: ::c_int = 0x2000000;
42294229
pub const RTF_IFREF: ::c_int = 0x4000000;
42304230
pub const RTF_PROXY: ::c_int = 0x8000000;
42314231
pub const RTF_ROUTER: ::c_int = 0x10000000;
4232+
pub const RTF_DEAD: ::c_int = 0x20000000;
4233+
pub const RTF_GLOBAL: ::c_int = 0x40000000;
42324234

42334235
pub const RTM_VERSION: ::c_int = 5;
42344236

0 commit comments

Comments
 (0)