Skip to content

Commit c0c81bf

Browse files
author
Bryant Mairs
committed
Migrate memfd constants to libc
1 parent 1b9d205 commit c0c81bf

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)