Skip to content

Commit 6e63124

Browse files
committed
Fix build on DragonflyBSD
1 parent b554122 commit 6e63124

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -788,8 +788,8 @@ fn _CMSG_ALIGN(n: usize) -> usize {
788788

789789
f! {
790790
pub fn CMSG_DATA(cmsg: *const ::cmsghdr) -> *mut ::c_uchar {
791-
cmsg as *mut ::c_uchar.offset(
792-
_CMSG_ALIGN(mem::size_of::<::cmsghdr>()) as isize)
791+
(cmsg as *mut ::c_uchar)
792+
.offset(_CMSG_ALIGN(mem::size_of::<::cmsghdr>()) as isize)
793793
}
794794

795795
pub fn CMSG_LEN(length: ::c_uint) -> ::c_uint {

0 commit comments

Comments
 (0)