Skip to content

Commit c6d702f

Browse files
committed
Auto merge of #2441 - tklauser:apple-rtf-consts, r=JohnTitor
Add Apple RTF_DEAD and RTF_GLOBAL RTF_DEAD was added in macOS 10.13. RTF_GLOBAL was added in macOS 11.0.
2 parents df48085 + cd759f1 commit c6d702f

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
@@ -297,6 +297,8 @@ fn test_apple(target: &str) {
297297
"SF_SETTABLE" => true,
298298
// FIXME: the values have been changed since Big Sur
299299
"HW_TARGET" | "HW_PRODUCT" | "HW_MAXID" => true,
300+
// this const requires macOS 11.0 or higher
301+
"RTF_GLOBAL" => true,
300302
_ => false,
301303
}
302304
});

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)