|
40 | 40 | pub ut_exit: __exit_status,
|
41 | 41 |
|
42 | 42 | #[cfg(any(target_arch = "aarch64",
|
43 |
| - target_arch = "sparc64", |
44 | 43 | all(target_pointer_width = "32",
|
45 | 44 | not(target_arch = "x86_64"))))]
|
46 | 45 | pub ut_session: ::c_long,
|
47 | 46 | #[cfg(any(target_arch = "aarch64",
|
48 |
| - target_arch = "sparc64", |
49 | 47 | all(target_pointer_width = "32",
|
50 | 48 | not(target_arch = "x86_64"))))]
|
51 | 49 | pub ut_tv: ::timeval,
|
52 | 50 |
|
53 | 51 | #[cfg(not(any(target_arch = "aarch64",
|
54 |
| - target_arch = "sparc64", |
55 | 52 | all(target_pointer_width = "32",
|
56 | 53 | not(target_arch = "x86_64")))))]
|
57 | 54 | pub ut_session: ::int32_t,
|
58 | 55 | #[cfg(not(any(target_arch = "aarch64",
|
59 |
| - target_arch = "sparc64", |
60 | 56 | all(target_pointer_width = "32",
|
61 | 57 | not(target_arch = "x86_64")))))]
|
62 | 58 | pub ut_tv: __timeval,
|
@@ -629,10 +625,6 @@ cfg_if!{
|
629 | 625 | pub const NFT_CHAIN_MAXNAMELEN: ::c_int = 32;
|
630 | 626 | pub const NFT_SET_MAXNAMELEN: ::c_int = 32;
|
631 | 627 | pub const NFT_OBJ_MAXNAMELEN: ::c_int = 32;
|
632 |
| - } else if #[cfg(target_arch = "sparc64")] { |
633 |
| - pub const NFT_TABLE_MAXNAMELEN: ::c_int = 32; |
634 |
| - pub const NFT_CHAIN_MAXNAMELEN: ::c_int = 32; |
635 |
| - pub const NFT_SET_MAXNAMELEN: ::c_int = 32; |
636 | 628 | } else {
|
637 | 629 | pub const NFT_TABLE_MAXNAMELEN: ::c_int = 256;
|
638 | 630 | pub const NFT_CHAIN_MAXNAMELEN: ::c_int = 256;
|
@@ -692,17 +684,11 @@ pub const NFT_MSG_DELSETELEM: ::c_int = 14;
|
692 | 684 | pub const NFT_MSG_NEWGEN: ::c_int = 15;
|
693 | 685 | pub const NFT_MSG_GETGEN: ::c_int = 16;
|
694 | 686 | pub const NFT_MSG_TRACE: ::c_int = 17;
|
695 |
| -cfg_if! { |
696 |
| - if #[cfg(not(target_arch = "sparc64"))] { |
697 |
| - pub const NFT_MSG_NEWOBJ: ::c_int = 18; |
698 |
| - pub const NFT_MSG_GETOBJ: ::c_int = 19; |
699 |
| - pub const NFT_MSG_DELOBJ: ::c_int = 20; |
700 |
| - pub const NFT_MSG_GETOBJ_RESET: ::c_int = 21; |
701 |
| - pub const NFT_MSG_MAX: ::c_int = 22; |
702 |
| - } else { |
703 |
| - pub const NFT_MSG_MAX: ::c_int = 18; |
704 |
| - } |
705 |
| -} |
| 687 | +pub const NFT_MSG_NEWOBJ: ::c_int = 18; |
| 688 | +pub const NFT_MSG_GETOBJ: ::c_int = 19; |
| 689 | +pub const NFT_MSG_DELOBJ: ::c_int = 20; |
| 690 | +pub const NFT_MSG_GETOBJ_RESET: ::c_int = 21; |
| 691 | +pub const NFT_MSG_MAX: ::c_int = 22; |
706 | 692 |
|
707 | 693 | pub const NFT_SET_ANONYMOUS: ::c_int = 0x1;
|
708 | 694 | pub const NFT_SET_CONSTANT: ::c_int = 0x2;
|
|
0 commit comments