Skip to content

Commit

Permalink
Migrate memfd constants to libc
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryant Mairs committed Nov 5, 2017
1 parent 1b9d205 commit c0c81bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sys/memfd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
);

Expand Down

0 comments on commit c0c81bf

Please sign in to comment.