1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/glibc/ports-2.10.1/410-alpha-no-page-header.patch Sun Jan 15 01:04:26 2012 +0100
1.3 @@ -0,0 +1,28 @@
1.4 +2008-06-07 Mike Frysinger <vapier@gentoo.org>
1.5 +
1.6 + * sysdeps/unix/sysv/linux/alpha/sys/user.h: Copy page.h definitions
1.7 + from the kernel header to sys/user.h and remove the #include of
1.8 + sys/user.h.
1.9 +
1.10 +diff -durN glibc-2.10.1.orig/glibc-ports-2.10.1/sysdeps/unix/sysv/linux/alpha/sys/user.h glibc-2.10.1/glibc-ports-2.10.1/sysdeps/unix/sysv/linux/alpha/sys/user.h
1.11 +--- glibc-2.10.1.orig/glibc-ports-2.10.1/sysdeps/unix/sysv/linux/alpha/sys/user.h 2009-05-16 10:36:20.000000000 +0200
1.12 ++++ glibc-2.10.1/glibc-ports-2.10.1/sysdeps/unix/sysv/linux/alpha/sys/user.h 2009-11-13 00:50:47.000000000 +0100
1.13 +@@ -23,7 +23,6 @@
1.14 + only. Don't read too much into it. Don't use it for anything other
1.15 + than gdb/strace unless you know what you are doing. */
1.16 +
1.17 +-#include <asm/page.h>
1.18 + #include <asm/reg.h>
1.19 +
1.20 + struct user
1.21 +@@ -41,6 +40,9 @@
1.22 + char u_comm[32]; /* user command name */
1.23 + };
1.24 +
1.25 ++#define PAGE_SHIFT 13
1.26 ++#define PAGE_SIZE (1 << PAGE_SHIFT)
1.27 ++#define PAGE_MASK (~(PAGE_SIZE-1))
1.28 + #define NBPG PAGE_SIZE
1.29 + #define UPAGES 1
1.30 + #define HOST_TEXT_START_ADDR (u.start_code)
1.31 +diff -durN glibc-2.10.1.orig/ports/sysdeps/unix/sysv/linux/alpha/sys/user.h glibc-2.10.1/ports/sysdeps/unix/sysv/linux/alpha/sys/user.h