diff --git a/sys/sys/param.h b/sys/sys/param.h index 3d97bef5266b..adfb870b9315 100644 --- a/sys/sys/param.h +++ b/sys/sys/param.h @@ -81,7 +81,6 @@ #define P_OSREL_SIGSEGV 700004 #define P_OSREL_MAP_ANON 800104 #define P_OSREL_MAP_FSTRICT 1100036 -#define P_OSREL_MAP_RENAME 1100039 #define P_OSREL_MAJOR(x) ((x) / 100000) #endif diff --git a/sys/vm/vm_mmap.c b/sys/vm/vm_mmap.c index cf72c838cc14..9b2511eb1da6 100644 --- a/sys/vm/vm_mmap.c +++ b/sys/vm/vm_mmap.c @@ -222,8 +222,7 @@ sys_mmap(td, uap) /* * Ignore old flags that used to be defined but did not do anything. */ - if (td->td_proc->p_osrel < P_OSREL_MAP_RENAME) - flags &= ~(MAP_RESERVED0020 | MAP_RESERVED0040); + flags &= ~(MAP_RESERVED0020 | MAP_RESERVED0040); /* * Enforce the constraints.