Use sysconf(_SC_PAGESIZE) instead of hardcoded PAGE_SHIFT
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.

geekboxzone/mmallow_external_strace,CyanogenMod/android_external_strace,TeamExodus/external_strace,bigzz/strace_android,kapdop/android_external_strace,bigzz/strace_android,DirtyUnicorns/android_external_strace,android-ia/platform_external_strace,MonkeyZZZZ/platform_external_strace,geekboxzone/mmallow_external_strace,geekboxzone/lollipop_external_strace,geofft/strace,geekboxzone/lollipop_external_strace,vrastogi/strace,bnoordhuis/strace,AOSP-YU/platform_external_strace,gcode-mirror/strace-plus,Distrotech/strace,CyanogenMod/android_external_strace,cuviper/strace,AOSP-YU/platform_external_strace,AOSP-YU/platform_external_strace,lkundrak/strace,lkundrak/strace,bigzz/strace_android,geekboxzone/lollipop_external_strace,bigzz/strace_android,YUPlayGodDev/platform_external_strace,vrastogi/strace,geofft/strace,Yu-AndroidM/android_external_strace,pombredanne/strace,MonkeyZZZZ/platform_external_strace,gcode-mirror/strace-plus,vrastogi/strace,geekboxzone/mmallow_external_strace,xin3liang/platform_external_strace,MonkeyZZZZ/platform_external_strace,Yu-AndroidM/android_external_strace,DirtyUnicorns/android_external_strace,Distrotech/strace,xin3liang/platform_external_strace,cuviper/strace,vrastogi/strace,lkundrak/strace,Yu-AndroidM/android_external_strace,bnoordhuis/strace,gcode-mirror/strace-plus,YUPlayGodDev/platform_external_strace,bnoordhuis/strace,cuviper/strace,geekboxzone/mmallow_external_strace,pombredanne/strace,lizh06/strace-plus,bnoordhuis/strace,geekboxzone/lollipop_external_strace,pgbovine/strace-plus,gcode-mirror/strace-plus,Distrotech/strace,lizh06/strace-plus,CyanogenMod/android_external_strace,Yu-AndroidM/android_external_strace,kapdop/android_external_strace,geekboxzone/lollipop_external_strace,YUPlayGodDev/platform_external_strace,bigzz/strace_android,pgbovine/strace-plus,kapdop/android_external_strace,Saruta/strace,Infinitive-OS/platform_external_strace,CyanogenMod/android_external_strace,AOSP-YU/platform_external_strace,cuviper/strace,Saruta/strace,DirtyUnicorns/android_external_strace,YUPlayGodDev/platform_external_strace,Saruta/strace,lizh06/strace-plus,android-ia/platform_external_strace,Infinitive-OS/platform_external_strace,geekboxzone/mmallow_external_strace,Infinitive-OS/platform_external_strace,geofft/strace,android-ia/platform_external_strace,DirtyUnicorns/android_external_strace,pgbovine/strace-plus,TeamExodus/external_strace,xin3liang/platform_external_strace,MonkeyZZZZ/platform_external_strace,CyanogenMod/android_external_strace,gcode-mirror/strace-plus,MonkeyZZZZ/platform_external_strace,Infinitive-OS/platform_external_strace,lizh06/strace-plus,vrastogi/strace,Distrotech/strace,jamel/strace-plus,Saruta/strace,Infinitive-OS/platform_external_strace,jamel/strace-plus,Saruta/strace,kapdop/android_external_strace,geofft/strace,YUPlayGodDev/platform_external_strace,TeamExodus/external_strace,pombredanne/strace,pombredanne/strace,jamel/strace-plus,TeamExodus/external_strace,kapdop/android_external_strace,lizh06/strace-plus,Distrotech/strace,jamel/strace-plus,cuviper/strace,AOSP-YU/platform_external_strace,jamel/strace-plus,android-ia/platform_external_strace,pgbovine/strace-plus,pgbovine/strace-plus,geofft/strace,Yu-AndroidM/android_external_strace,android-ia/platform_external_strace,DirtyUnicorns/android_external_strace,TeamExodus/external_strace,lkundrak/strace,xin3liang/platform_external_strace