commit | c76a363af8bfc7b83558253fae38ae3d255e0aa9 | [log] [tgz] |
---|---|---|
author | Dmitry V. Levin <ldv@altlinux.org> | Tue Mar 05 14:58:24 2013 +0000 |
committer | Dmitry V. Levin <ldv@altlinux.org> | Tue Mar 05 16:03:53 2013 +0000 |
tree | 80afea822554e0b6b3469c6ee75a51e8f516d0e6 | |
parent | aba62927974603bb1ac0b659f6a4f8afb9899c83 [diff] |
Use sysconf(_SC_PAGESIZE) instead of hardcoded PAGE_SHIFT PAGE_SHIFT couldn't be reliably obtained at compile time, thanks to Chris Metcalf for the hint. * mem.c: Do not include <sys/user.h>. [SH64] Do not include <asm/page.h>. (get_pagesize): New function. (sys_mmap_pgoff, sys_old_mmap_pgoff): Use it.