summaryrefslogtreecommitdiff
path: root/src/sys
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2017-11-07 04:59:53 +0000
committerbors[bot] <bors[bot]@users.noreply.github.com>2017-11-07 04:59:53 +0000
commit6a2feaa98fc110700b3a10d3808bb8526d7d1fb9 (patch)
tree8cde07a26f045d3d34f49e4dc28030eb15c938ff /src/sys
parentba9ee75ec0333f66d25b09d5c18bbaefac23714f (diff)
parentc0c81bfb31e9c34a403d35a0a989f1e4c1ca818c (diff)
downloadnix-6a2feaa98fc110700b3a10d3808bb8526d7d1fb9.zip
Merge #794
794: Migrate memfd constants to libc r=Susurrus a=Susurrus This will fail because rust-lang/libc#836 is not merged yet, but just getting it staged for when it is.
Diffstat (limited to 'src/sys')
-rw-r--r--src/sys/memfd.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sys/memfd.rs b/src/sys/memfd.rs
index 056e9e43..88c1dac9 100644
--- a/src/sys/memfd.rs
+++ b/src/sys/memfd.rs
@@ -3,10 +3,10 @@ use std::os::unix::io::RawFd;
use {Errno, Result};
use std::ffi::CStr;
-bitflags!(
+libc_bitflags!(
pub struct MemFdCreateFlag: libc::c_uint {
- const MFD_CLOEXEC = 0x0001;
- const MFD_ALLOW_SEALING = 0x0002;
+ MFD_CLOEXEC;
+ MFD_ALLOW_SEALING;
}
);