We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4c9f5b commit c9a3dc8Copy full SHA for c9a3dc8
src/sys/mman.rs
@@ -6,16 +6,16 @@ use std::os::unix::io::RawFd;
6
7
pub use self::consts::*;
8
9
-bitflags!{
+libc_bitflags!{
10
flags ProtFlags : libc::c_int {
11
- const PROT_NONE = libc::PROT_NONE,
12
- const PROT_READ = libc::PROT_READ,
13
- const PROT_WRITE = libc::PROT_WRITE,
14
- const PROT_EXEC = libc::PROT_EXEC,
+ PROT_NONE,
+ PROT_READ,
+ PROT_WRITE,
+ PROT_EXEC,
15
#[cfg(any(target_os = "linux", target_os = "android"))]
16
- const PROT_GROWSDOWN = libc::PROT_GROWSDOWN,
+ PROT_GROWSDOWN,
17
18
- const PROT_GROWSUP = libc::PROT_GROWSUP,
+ PROT_GROWSUP,
19
}
20
21
0 commit comments