summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_mmap.c
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2002-05-30 07:32:58 +0000
committeralfred <alfred@FreeBSD.org>2002-05-30 07:32:58 +0000
commit26c9c27f03bdb0ef924ca84475566e77d01c14d5 (patch)
treee28fa7a497a1f756cd06d2e16ccb65be76af020c /sys/vm/vm_mmap.c
parent4320d2c0b94ff0dc507427f40628e753166b2815 (diff)
downloadFreeBSD-src-26c9c27f03bdb0ef924ca84475566e77d01c14d5.zip
FreeBSD-src-26c9c27f03bdb0ef924ca84475566e77d01c14d5.tar.gz
Check for defined(__i386__) instead of just defined(i386) since the compiler
will be updated to only define(__i386__) for ANSI cleanliness.
Diffstat (limited to 'sys/vm/vm_mmap.c')
-rw-r--r--sys/vm/vm_mmap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/vm/vm_mmap.c b/sys/vm/vm_mmap.c
index c003353..d298993 100644
--- a/sys/vm/vm_mmap.c
+++ b/sys/vm/vm_mmap.c
@@ -256,7 +256,7 @@ mmap(td, uap)
/* Address range must be all in user VM space. */
if (VM_MAXUSER_ADDRESS > 0 && addr + size > VM_MAXUSER_ADDRESS)
return (EINVAL);
-#ifndef i386
+#ifndef __i386__
if (VM_MIN_ADDRESS > 0 && addr < VM_MIN_ADDRESS)
return (EINVAL);
#endif
@@ -603,7 +603,7 @@ munmap(td, uap)
*/
if (VM_MAXUSER_ADDRESS > 0 && addr + size > VM_MAXUSER_ADDRESS)
return (EINVAL);
-#ifndef i386
+#ifndef __i386__
if (VM_MIN_ADDRESS > 0 && addr < VM_MIN_ADDRESS)
return (EINVAL);
#endif
@@ -749,7 +749,7 @@ madvise(td, uap)
if (VM_MAXUSER_ADDRESS > 0 &&
((vm_offset_t) uap->addr + uap->len) > VM_MAXUSER_ADDRESS)
return (EINVAL);
-#ifndef i386
+#ifndef __i386__
if (VM_MIN_ADDRESS > 0 && uap->addr < VM_MIN_ADDRESS)
return (EINVAL);
#endif
OpenPOWER on IntegriCloud