diff options
author | Bryant Mairs <bryantmairs@google.com> | 2017-11-05 12:29:17 -0800 |
---|---|---|
committer | Bryant Mairs <bryantmairs@google.com> | 2017-11-05 12:29:17 -0800 |
commit | c0c81bfb31e9c34a403d35a0a989f1e4c1ca818c (patch) | |
tree | 83db73b6934d036ca220f92db803b56f95197f3b | |
parent | 1b9d205c472232c18803b8e9375ef2c6b704148c (diff) | |
download | nix-c0c81bfb31e9c34a403d35a0a989f1e4c1ca818c.zip |
Migrate memfd constants to libc
-rw-r--r-- | src/sys/memfd.rs | 6 |
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; } ); |