diff options
author | bors <bors@rust-lang.org> | 2023-04-02 18:42:55 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2023-04-02 18:42:55 +0000 |
commit | e0d66cdec1bc00f731d35e0d1e48a5b318bcaaa4 (patch) | |
tree | 7c1a2f4df73f9324523c98914ca4e7ec9943aa35 /src | |
parent | 5c57d3ed37aceeb5100fe8a9a30749abc3ea4e9e (diff) | |
parent | 050d5977089cfdd632a9ca3c66e87a27bf3a2784 (diff) | |
download | rust-libc-e0d66cdec1bc00f731d35e0d1e48a5b318bcaaa4.tar.gz |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/unix/aix/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unix/aix/mod.rs b/src/unix/aix/mod.rs index 3348ead5b6..98a09b5abc 100644 --- a/src/unix/aix/mod.rs +++ b/src/unix/aix/mod.rs @@ -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 } |