Skip to content

Commit 43ad692

Browse files
add extra_traits
1 parent 7398bc4 commit 43ad692

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

  • src/unix/linux_like/android/b64/aarch64

src/unix/linux_like/android/b64/aarch64/mod.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,22 @@ s_no_extra_traits! {
9999
}
100100
}
101101

102+
cfg_if! {
103+
if #[cfg(feature = "extra_traits")] {
104+
impl PartialEq for __c_anonymous_uc_sigmask {
105+
fn eq(&self, other: &__c_anonymous_uc_sigmask) -> bool {
106+
unsafe { self.uc_sigmask == other.uc_sigmask }
107+
}
108+
}
109+
impl Eq for __c_anonymous_uc_sigmask {}
110+
impl hash::Hash for __c_anonymous_uc_sigmask {
111+
fn hash<H: hash::Hasher>(&self, state: &mut H) {
112+
unsafe { self.uc_sigmask.hash(state) }
113+
}
114+
}
115+
}
116+
}
117+
102118
pub const O_DIRECT: c_int = 0x10000;
103119
pub const O_DIRECTORY: c_int = 0x4000;
104120
pub const O_NOFOLLOW: c_int = 0x8000;

0 commit comments

Comments
 (0)