diff options
author | kib <kib@FreeBSD.org> | 2010-11-14 21:59:11 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2010-11-14 21:59:11 +0000 |
commit | f8badff8ef3ef3b7ab308d20fa6f5d542bb2fafa (patch) | |
tree | f4e75b04186009c5f8b39f388db5be2d6622c310 /sys/vm | |
parent | 62bef117d8fce7e2833ac5356272bc3543cc55dd (diff) | |
download | FreeBSD-src-f8badff8ef3ef3b7ab308d20fa6f5d542bb2fafa.zip FreeBSD-src-f8badff8ef3ef3b7ab308d20fa6f5d542bb2fafa.tar.gz |
Do not use __FreeBSD_version prefix for the special osrel version.
The ports/Mk/bsd.port.mk uses sys/param.h to fetch osrel, and cannot
grok several constants with the prefix.
Reported and tested by: swell.k gmail com
MFC after: 1 week
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vm_mmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_mmap.c b/sys/vm/vm_mmap.c index 5c6f173..f2dba2c 100644 --- a/sys/vm/vm_mmap.c +++ b/sys/vm/vm_mmap.c @@ -232,7 +232,7 @@ mmap(td, uap) /* Make sure mapping fits into numeric range, etc. */ if ((uap->len == 0 && !SV_CURPROC_FLAG(SV_AOUT) && - curproc->p_osrel >= __FreeBSD_version_MAP_ANON) || + curproc->p_osrel >= P_OSREL_MAP_ANON) || ((flags & MAP_ANON) && (uap->fd != -1 || pos != 0))) return (EINVAL); |