Skip to content

Commit

Permalink
Fix vm_page_size visibility
Browse files Browse the repository at this point in the history
	* sysdeps/mach/hurd/mmap.c (__mmap): Use __vm_page_size instead of
	vm_page_size.
  • Loading branch information
Samuel Thibault committed Sep 20, 2015
1 parent b0b64e1 commit 51a3985
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion sysdeps/mach/hurd/mmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 51a3985

Please sign in to comment.