Skip to content

Commit 7705d07

Browse files
committed
Move constants to gnu/mod.rs that are not musl-compatible
1 parent d61b55d commit 7705d07

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/unix/linux_like/linux/gnu/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,11 @@ pub const TCA_DUMP_INVISIBLE: ::c_ushort = 10;
564564
pub const TCA_CHAIN: ::c_ushort = 11;
565565
pub const TCA_HW_OFFLOAD: ::c_ushort = 12;
566566

567+
pub const RTM_DELNETCONF: u16 = 81;
568+
pub const RTM_NEWSTATS: u16 = 92;
569+
pub const RTM_GETSTATS: u16 = 94;
570+
pub const RTM_NEWCACHEREPORT: u16 = 96;
571+
567572
pub const RTM_F_LOOKUP_TABLE: ::c_uint = 0x1000;
568573
pub const RTM_F_FIB_MATCH: ::c_uint = 0x2000;
569574

src/unix/linux_like/linux/mod.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1949,17 +1949,13 @@ pub const RTM_GETADDRLABEL: u16 = 74;
19491949
pub const RTM_GETDCB: u16 = 78;
19501950
pub const RTM_SETDCB: u16 = 79;
19511951
pub const RTM_NEWNETCONF: u16 = 80;
1952-
pub const RTM_DELNETCONF: u16 = 81;
19531952
pub const RTM_GETNETCONF: u16 = 82;
19541953
pub const RTM_NEWMDB: u16 = 84;
19551954
pub const RTM_DELMDB: u16 = 85;
19561955
pub const RTM_GETMDB: u16 = 86;
19571956
pub const RTM_NEWNSID: u16 = 88;
19581957
pub const RTM_DELNSID: u16 = 89;
19591958
pub const RTM_GETNSID: u16 = 90;
1960-
pub const RTM_NEWSTATS: u16 = 92;
1961-
pub const RTM_GETSTATS: u16 = 94;
1962-
pub const RTM_NEWCACHEREPORT: u16 = 96;
19631959

19641960
pub const RTM_F_NOTIFY: ::c_uint = 0x100;
19651961
pub const RTM_F_CLONED: ::c_uint = 0x200;

0 commit comments

Comments
 (0)