Skip to content

Commit

Permalink
Merge pull request #4240 from sthibaul/cmsg_data
Browse files Browse the repository at this point in the history
hurd: Fix CMSG_DATA on 64bit systems
  • Loading branch information
tgross35 authored Jan 27, 2025
2 parents 0f9f8c9 + 67104ee commit 4a9d898
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unix/hurd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3449,7 +3449,7 @@ f! {
}

pub fn CMSG_DATA(cmsg: *const cmsghdr) -> *mut c_uchar {
cmsg.offset(1) as *mut c_uchar
(cmsg as *mut c_uchar).offset(CMSG_ALIGN(mem::size_of::<cmsghdr>()) as isize)
}

pub {const} fn CMSG_SPACE(length: c_uint) -> c_uint {
Expand Down

0 comments on commit 4a9d898

Please sign in to comment.