diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2015-09-21 00:08:51 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2015-09-21 00:08:51 +0200 |
commit | 51a3985d9743b191b7bc0025563c211bfa9b1b8b (patch) | |
tree | 4ebc7de5cbf1784fe203032a17511a0ce258af53 | |
parent | b0b64e1b5ea394f2a0bcff201ac2a4af206d738a (diff) | |
download | glibc-51a3985d9743b191b7bc0025563c211bfa9b1b8b.tar.gz glibc-51a3985d9743b191b7bc0025563c211bfa9b1b8b.tar.xz glibc-51a3985d9743b191b7bc0025563c211bfa9b1b8b.zip |
Fix vm_page_size visibility
* sysdeps/mach/hurd/mmap.c (__mmap): Use __vm_page_size instead of vm_page_size.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | sysdeps/mach/hurd/mmap.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 565c3ca4ac..ff32d15d96 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2015-09-21 Samuel Thibault <samuel.thibault@ens-lyon.org> + + * sysdeps/mach/hurd/mmap.c (__mmap): Use __vm_page_size instead of + vm_page_size. + 2015-09-19 Samuel Thibault <samuel.thibault@ens-lyon.org> Really fix sysdeps/i386/fpu/s_scalbn.S build diff --git a/sysdeps/mach/hurd/mmap.c b/sysdeps/mach/hurd/mmap.c index 139f27ad30..f99590b289 100644 --- a/sysdeps/mach/hurd/mmap.c +++ b/sysdeps/mach/hurd/mmap.c @@ -41,7 +41,7 @@ __mmap (__ptr_t addr, size_t len, int prot, int flags, int fd, off_t offset) mapaddr = (vm_address_t) addr; /* ADDR and OFFSET must be page-aligned. */ - if ((mapaddr & (vm_page_size - 1)) || (offset & (vm_page_size - 1))) + if ((mapaddr & (__vm_page_size - 1)) || (offset & (__vm_page_size - 1))) return (__ptr_t) (long int) __hurd_fail (EINVAL); if ((flags & (MAP_TYPE|MAP_INHERIT)) == MAP_ANON |