Skip to content

Commit 2abd73a

Browse files
committed
Fix NFT tables in Sparc64
1 parent a45a57a commit 2abd73a

File tree

1 file changed

+4
-12
lines changed
  • src/unix/notbsd/linux/other

1 file changed

+4
-12
lines changed

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

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -686,18 +686,10 @@ pub const NFPROTO_INET: ::c_int = 1;
686686
pub const NFPROTO_NETDEV: ::c_int = 5;
687687

688688
// linux/netfilter/nf_tables.h
689-
cfg_if!{
690-
if #[cfg(target_arch = "sparc64")] {
691-
pub const NFT_TABLE_MAXNAMELEN: ::c_int = 32;
692-
pub const NFT_CHAIN_MAXNAMELEN: ::c_int = 32;
693-
pub const NFT_SET_MAXNAMELEN: ::c_int = 32;
694-
} else {
695-
pub const NFT_TABLE_MAXNAMELEN: ::c_int = 256;
696-
pub const NFT_CHAIN_MAXNAMELEN: ::c_int = 256;
697-
pub const NFT_SET_MAXNAMELEN: ::c_int = 256;
698-
pub const NFT_OBJ_MAXNAMELEN: ::c_int = 256;
699-
}
700-
}
689+
pub const NFT_TABLE_MAXNAMELEN: ::c_int = 256;
690+
pub const NFT_CHAIN_MAXNAMELEN: ::c_int = 256;
691+
pub const NFT_SET_MAXNAMELEN: ::c_int = 256;
692+
pub const NFT_OBJ_MAXNAMELEN: ::c_int = 256;
701693
pub const NFT_USERDATA_MAXLEN: ::c_int = 256;
702694

703695
pub const NFT_REG_VERDICT: ::c_int = 0;

0 commit comments

Comments
 (0)