Skip to content

Commit 1f997a5

Browse files
committed
Fix builds by moving the rest of the current constants to linux/other/mod.rs to avoid breaking musl
1 parent 40670d5 commit 1f997a5

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

src/unix/notbsd/linux/mod.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1812,8 +1812,6 @@ pub const NTF_USE: u8 = 0x01;
18121812
pub const NTF_SELF: u8 = 0x02;
18131813
pub const NTF_MASTER: u8 = 0x04;
18141814
pub const NTF_PROXY: u8 = 0x08;
1815-
pub const NTF_EXT_LEARNED: u8 = 0x10;
1816-
pub const NTF_OFFLOADED: u8 = 0x20;
18171815
pub const NTF_ROUTER: u8 = 0x80;
18181816

18191817
pub const NDA_UNSPEC: ::c_ushort = 0;
@@ -1825,9 +1823,6 @@ pub const NDA_VLAN: ::c_ushort = 5;
18251823
pub const NDA_PORT: ::c_ushort = 6;
18261824
pub const NDA_VNI: ::c_ushort = 7;
18271825
pub const NDA_IFINDEX: ::c_ushort = 8;
1828-
pub const NDA_MASTER: ::c_ushort = 9;
1829-
pub const NDA_LINK_NETNSID: ::c_ushort = 10;
1830-
pub const NDA_SRC_VNI: ::c_ushort = 11;
18311826

18321827
// linux/rtnetlink.h
18331828
pub const RTM_F_NOTIFY: ::c_uint = 0x100;

src/unix/notbsd/linux/other/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,14 @@ pub const RTA_PAD: ::c_ushort = 24;
615615
pub const RTA_UID: ::c_ushort = 25;
616616
pub const RTA_TTL_PROPAGATE: ::c_ushort = 26;
617617

618+
// linux/neighbor.h
619+
pub const NTF_EXT_LEARNED: u8 = 0x10;
620+
pub const NTF_OFFLOADED: u8 = 0x20;
621+
622+
pub const NDA_MASTER: ::c_ushort = 9;
623+
pub const NDA_LINK_NETNSID: ::c_ushort = 10;
624+
pub const NDA_SRC_VNI: ::c_ushort = 11;
625+
618626
// linux/if_addr.h
619627
pub const IFA_FLAGS: ::c_ushort = 8;
620628

0 commit comments

Comments
 (0)