Skip to content

Commit fe49994

Browse files
committed
Move non-musl GENL_ constants to correct submodules
1 parent 69ae346 commit fe49994

File tree

3 files changed

+10
-13
lines changed

3 files changed

+10
-13
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,11 @@ pub const EPOLLWAKEUP: ::c_int = 0x20000000;
702702

703703
pub const NLA_ALIGNTO: ::c_int = 4;
704704

705+
pub const GENL_UNS_ADMIN_PERM: ::c_int = 0x10;
706+
707+
pub const GENL_ID_VFS_DQUOT: ::c_int = ::NLMSG_MIN_TYPE + 1;
708+
pub const GENL_ID_PMCRAID: ::c_int = ::NLMSG_MIN_TYPE + 2;
709+
705710
pub const NFT_TABLE_MAXNAMELEN: ::c_int = 32;
706711
pub const NFT_CHAIN_MAXNAMELEN: ::c_int = 32;
707712
pub const NFT_SET_MAXNAMELEN: ::c_int = 32;

src/unix/notbsd/linux/mod.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1285,21 +1285,8 @@ pub const GENL_ADMIN_PERM: ::c_int = 0x01;
12851285
pub const GENL_CMD_CAP_DO: ::c_int = 0x02;
12861286
pub const GENL_CMD_CAP_DUMP: ::c_int = 0x04;
12871287
pub const GENL_CMD_CAP_HASPOL: ::c_int = 0x08;
1288-
cfg_if! {
1289-
if #[cfg(not(target_env = "musl"))] {
1290-
pub const GENL_UNS_ADMIN_PERM: ::c_int = 0x10;
1291-
} else {
1292-
}
1293-
}
12941288

12951289
pub const GENL_ID_CTRL: ::c_int = NLMSG_MIN_TYPE;
1296-
cfg_if! {
1297-
if #[cfg(not(target_env = "musl"))] {
1298-
pub const GENL_ID_VFS_DQUOT: ::c_int = NLMSG_MIN_TYPE + 1;
1299-
pub const GENL_ID_PMCRAID: ::c_int = NLMSG_MIN_TYPE + 2;
1300-
} else {
1301-
}
1302-
}
13031290

13041291
pub const CTRL_CMD_UNSPEC: ::c_int = 0;
13051292
pub const CTRL_CMD_NEWFAMILY: ::c_int = 1;

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,11 @@ pub const NLA_TYPE_MASK: ::c_int = !(NLA_F_NESTED | NLA_F_NET_BYTEORDER);
572572

573573
pub const NLA_ALIGNTO: ::c_int = 4;
574574

575+
pub const GENL_UNS_ADMIN_PERM: ::c_int = 0x10;
576+
577+
pub const GENL_ID_VFS_DQUOT: ::c_int = ::NLMSG_MIN_TYPE + 1;
578+
pub const GENL_ID_PMCRAID: ::c_int = ::NLMSG_MIN_TYPE + 2;
579+
575580
pub const TIOCM_LE: ::c_int = 0x001;
576581
pub const TIOCM_DTR: ::c_int = 0x002;
577582
pub const TIOCM_RTS: ::c_int = 0x004;

0 commit comments

Comments
 (0)