Skip to content

Commit 67464ff

Browse files
committedJan 2, 2022
Fix _CMSG_ALIGN on DragonFly
1 parent 52382d6 commit 67464ff

File tree

1 file changed

+1
-1
lines changed
  • src/unix/bsd/freebsdlike/dragonfly

1 file changed

+1
-1
lines changed
 

‎src/unix/bsd/freebsdlike/dragonfly/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1348,7 +1348,7 @@ pub const MINCORE_SUPER: ::c_int = 0x20;
13481348

13491349
const_fn! {
13501350
{const} fn _CMSG_ALIGN(n: usize) -> usize {
1351-
(n + 3) & !3
1351+
(n + ::mem::size_of::<::c_long>()) & !::mem::size_of::<::c_long>()
13521352
}
13531353
}
13541354

0 commit comments

Comments
 (0)
Please sign in to comment.