diff options
author | bors <bors@rust-lang.org> | 2023-05-08 09:42:15 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2023-05-08 09:42:15 +0000 |
commit | 71420d46c26890b7ad6bcc01baa08d0f6d82fde3 (patch) | |
tree | 7a80b35e6baa7d5e91bcd7f6e7d537a39a715947 /src/fuchsia/mod.rs | |
parent | 3b5109b3da613de31eb0d6bd42c9d6a6033360fb (diff) | |
parent | dbae373978629aea0c29b6a4ba62e4cb2e2d0d4e (diff) | |
download | rust-libc-71420d46c26890b7ad6bcc01baa08d0f6d82fde3.tar.gz |
Auto merge of #3241 - jmillikin:cmsg-macros-const-usize, r=JohnTitor
Constify `CMSG_LEN` for all targets.
Diffstat (limited to 'src/fuchsia/mod.rs')
-rw-r--r-- | src/fuchsia/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fuchsia/mod.rs b/src/fuchsia/mod.rs index 6b12185413..3e922e766c 100644 --- a/src/fuchsia/mod.rs +++ b/src/fuchsia/mod.rs @@ -3271,7 +3271,7 @@ f! { as ::c_uint } - pub fn CMSG_LEN(len: ::c_uint) -> ::c_uint { + pub {const} fn CMSG_LEN(len: ::c_uint) -> ::c_uint { (CMSG_ALIGN(::mem::size_of::<cmsghdr>()) + len as ::size_t) as ::c_uint } } |