Skip to content

Commit

Permalink
Auto merge of #3176 - coolreader18:aix-const-cmsg_space, r=JohnTitor
Browse files Browse the repository at this point in the history
Make CMSG_SPACE on aix const

Now `CMSG_SPACE` is const (when `libc_const_extern_fn`) on every platform that has it
  • Loading branch information
bors committed Apr 2, 2023
2 parents 5c57d3e + 050d597 commit e0d66cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unix/aix/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2054,7 +2054,7 @@ f! {
::mem::size_of::<::cmsghdr>() as ::c_uint + length
}

pub fn CMSG_SPACE(length: ::c_uint) -> ::c_uint {
pub {const} fn CMSG_SPACE(length: ::c_uint) -> ::c_uint {
::mem::size_of::<::cmsghdr>() as ::c_uint + length
}

Expand Down

0 comments on commit e0d66cd

Please sign in to comment.