Skip to content

Commit dac1b4d

Browse files
rmehri01tgross35
authored andcommitted
fix: simplify epoll_event packed check
(backport <rust-lang#4639>) (cherry picked from commit 8bd31d7)
1 parent 1ffd97d commit dac1b4d

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/unix/linux_like/mod.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -278,14 +278,7 @@ cfg_if! {
278278

279279
s_no_extra_traits! {
280280
#[cfg_attr(
281-
any(
282-
all(
283-
target_arch = "x86",
284-
not(target_env = "musl"),
285-
not(target_os = "android")
286-
),
287-
target_arch = "x86_64"
288-
),
281+
any(target_arch = "x86_64", all(target_arch = "x86", target_env = "gnu")),
289282
repr(packed)
290283
)]
291284
pub struct epoll_event {

0 commit comments

Comments
 (0)