summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNoa <coolreader18@gmail.com>2023-03-29 11:34:08 -0500
committerNoa <coolreader18@gmail.com>2023-03-29 11:34:08 -0500
commit050d5977089cfdd632a9ca3c66e87a27bf3a2784 (patch)
tree4290d7c0d96ac88e07aba0d200e795d936618098 /src
parent68e06adafa8f793b094a23b210d39b27c813600c (diff)
downloadrust-libc-050d5977089cfdd632a9ca3c66e87a27bf3a2784.tar.gz
Make CMSG_SPACE on aix const
Diffstat (limited to 'src')
-rw-r--r--src/unix/aix/mod.rs2
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
}