From 51a287b98aecce291651cd7d301d55b6a77d63fe Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Fri, 26 Mar 2021 20:49:07 -0600 Subject: [PATCH] Add MAP_GUARD on FreeBSD. It was added in FreeBSD 11.1. --- src/unix/bsd/freebsdlike/freebsd/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/unix/bsd/freebsdlike/freebsd/mod.rs b/src/unix/bsd/freebsdlike/freebsd/mod.rs index 18a38bd5..75189cc7 100644 --- a/src/unix/bsd/freebsdlike/freebsd/mod.rs +++ b/src/unix/bsd/freebsdlike/freebsd/mod.rs @@ -447,6 +447,8 @@ pub const NI_NUMERICSCOPE: ::c_int = 0x00000020; pub const Q_GETQUOTA: ::c_int = 0x700; pub const Q_SETQUOTA: ::c_int = 0x800; +pub const MAP_GUARD: ::c_int = 0x00002000; + pub const POSIX_FADV_NORMAL: ::c_int = 0; pub const POSIX_FADV_RANDOM: ::c_int = 1; pub const POSIX_FADV_SEQUENTIAL: ::c_int = 2;