Skip to content

Commit e0d66cd

Browse files
committed
Auto merge of #3176 - coolreader18:aix-const-cmsg_space, r=JohnTitor
Make CMSG_SPACE on aix const Now `CMSG_SPACE` is const (when `libc_const_extern_fn`) on every platform that has it
2 parents 5c57d3e + 050d597 commit e0d66cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/unix/aix/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2054,7 +2054,7 @@ f! {
20542054
::mem::size_of::<::cmsghdr>() as ::c_uint + length
20552055
}
20562056

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

0 commit comments

Comments
 (0)