diff options
author | gnzlbg <gonzalobg88@gmail.com> | 2019-05-15 14:16:59 +0200 |
---|---|---|
committer | gnzlbg <gonzalobg88@gmail.com> | 2019-05-16 09:15:12 +0200 |
commit | 4a8fa6f1f0ba4f76709d129ffdfd2f2cb85d37cc (patch) | |
tree | 5e7f6442bd42e372c0c0bd2c3accdd58ab8a6e42 | |
parent | bdb18160708aa85167c71c4a3f643e7a7d484869 (diff) | |
download | rust-libc-4a8fa6f1f0ba4f76709d129ffdfd2f2cb85d37cc.tar.gz |
Correct value of some NFT_ constants on AArch64
-rw-r--r-- | src/unix/notbsd/linux/other/mod.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/unix/notbsd/linux/other/mod.rs b/src/unix/notbsd/linux/other/mod.rs index 6db8d9c382..12dec10d95 100644 --- a/src/unix/notbsd/linux/other/mod.rs +++ b/src/unix/notbsd/linux/other/mod.rs @@ -689,12 +689,7 @@ pub const NFPROTO_NETDEV: ::c_int = 5; // linux/netfilter/nf_tables.h cfg_if!{ - if #[cfg(target_arch = "aarch64")] { - pub const NFT_TABLE_MAXNAMELEN: ::c_int = 32; - pub const NFT_CHAIN_MAXNAMELEN: ::c_int = 32; - pub const NFT_SET_MAXNAMELEN: ::c_int = 32; - pub const NFT_OBJ_MAXNAMELEN: ::c_int = 32; - } else if #[cfg(target_arch = "sparc64")] { + if #[cfg(target_arch = "sparc64")] { pub const NFT_TABLE_MAXNAMELEN: ::c_int = 32; pub const NFT_CHAIN_MAXNAMELEN: ::c_int = 32; pub const NFT_SET_MAXNAMELEN: ::c_int = 32; |