Fix build warnings (errors on CI) due to mmap flag rename and deprecation.

This commit is contained in:
Chris Fallin
2020-06-03 09:35:09 -07:00
parent a76639c6fb
commit b8e31d7c8e
3 changed files with 7 additions and 7 deletions

View File

@@ -120,7 +120,7 @@ impl CodeMemory {
if !m.is_empty() {
unsafe {
region::protect(m.as_mut_ptr(), m.len(), region::Protection::ReadExecute)
region::protect(m.as_mut_ptr(), m.len(), region::Protection::READ_EXECUTE)
}
.expect("unable to make memory readonly and executable");
}