2 ports/sysdeps/unix/sysv/linux/alpha/sys/user.h | 4 ++--
3 ports/sysdeps/unix/sysv/linux/mips/sys/user.h | 4 ++--
4 sysdeps/unix/sysv/linux/ia64/sys/user.h | 3 ++-
5 sysdeps/unix/sysv/linux/x86_64/sys/user.h | 4 ++--
6 4 files changed, 8 insertions(+), 7 deletions(-)
8 --- a/ports/sysdeps/unix/sysv/linux/alpha/sys/user.h
9 +++ b/ports/sysdeps/unix/sysv/linux/alpha/sys/user.h
11 only. Don't read too much into it. Don't use it for anything other
12 than gdb/strace unless you know what you are doing. */
14 -#include <asm/page.h>
20 char u_comm[32]; /* user command name */
23 -#define NBPG PAGE_SIZE
24 +#define NBPG (sysconf(_SC_PAGESIZE))
26 #define HOST_TEXT_START_ADDR (u.start_code)
27 #define HOST_DATA_START_ADDR (u.start_data)
28 --- a/sysdeps/unix/sysv/linux/ia64/sys/user.h
29 +++ b/sysdeps/unix/sysv/linux/ia64/sys/user.h
33 #include <sys/types.h>
36 /* This definition comes directly from the kernel headers. If
37 anything changes in them this header has to be changed, too. */
39 char u_comm[32]; /* User command name. */
42 -#define NBPG PAGE_SIZE
43 +#define NBPG (sysconf(_SC_PAGESIZE))
45 #define HOST_TEXT_START_ADDR (u.start_code)
46 #define HOST_DATA_START_ADDR (u.start_data)
47 --- a/ports/sysdeps/unix/sysv/linux/mips/sys/user.h
48 +++ b/ports/sysdeps/unix/sysv/linux/mips/sys/user.h
55 /* The whole purpose of this file is for GDB and GDB only. Don't read
56 too much into it. Don't use it for anything other than GDB unless
61 -#define PAGE_SHIFT 12
62 -#define PAGE_SIZE (1UL << PAGE_SHIFT)
63 +#define PAGE_SIZE (sysconf(_SC_PAGESIZE))
64 #define PAGE_MASK (~(PAGE_SIZE-1))
65 #define NBPG PAGE_SIZE
67 --- a/sysdeps/unix/sysv/linux/x86_64/sys/user.h
68 +++ b/sysdeps/unix/sysv/linux/x86_64/sys/user.h
70 you know what you are doing. */
72 #include <bits/wordsize.h>
79 #endif /* __WORDSIZE */
81 -#define PAGE_SHIFT 12
82 -#define PAGE_SIZE (1UL << PAGE_SHIFT)
83 +#define PAGE_SIZE (sysconf(_SC_PAGESIZE))
84 #define PAGE_MASK (~(PAGE_SIZE-1))
85 #define NBPG PAGE_SIZE