Skip to content

Commit

Permalink
Fix SockaddrLike::len on non-BSD
Browse files Browse the repository at this point in the history
  • Loading branch information
asomers committed Mar 20, 2022
1 parent 10f518a commit 91aab08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sys/socket/addr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,7 @@ pub trait SockaddrLike: private::SockaddrLikePriv {
// No robust default implementation is possible without an
// sa_len field. Implementors with a variable size must
// override this method.
mem::size_of_val(&self) as libc::socklen_t
mem::size_of_val(self) as libc::socklen_t
}
}
}
Expand Down

0 comments on commit 91aab08

Please sign in to comment.