Skip to content

Commit 6a2feaa

Browse files
committed
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.
2 parents ba9ee75 + c0c81bf commit 6a2feaa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/sys/memfd.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ use std::os::unix::io::RawFd;
33
use {Errno, Result};
44
use std::ffi::CStr;
55

6-
bitflags!(
6+
libc_bitflags!(
77
pub struct MemFdCreateFlag: libc::c_uint {
8-
const MFD_CLOEXEC = 0x0001;
9-
const MFD_ALLOW_SEALING = 0x0002;
8+
MFD_CLOEXEC;
9+
MFD_ALLOW_SEALING;
1010
}
1111
);
1212

0 commit comments

Comments
 (0)