diff options
author | Stanislav Brabec <utx@penguin.cz> | 2009-08-26 19:37:12 +0000 |
---|---|---|
committer | utx@penguin.cz <utx@penguin.cz> | 2009-08-26 19:37:12 +0000 |
commit | 8ba4ce90740eb50ac0b1a394280ff94e388bda6a (patch) | |
tree | 6005542975310072cbdb8fe780e514f3b1c0c0e3 /recipes/linux-libc-headers/linux-libc-headers-2.6.30/asm-page.patch | |
parent | 2c9d61f33d320d3e93dbffe4c5009e8c5041a0c1 (diff) |
linux-libc-headers: Added headers for version 2.6.30.
Diffstat (limited to 'recipes/linux-libc-headers/linux-libc-headers-2.6.30/asm-page.patch')
-rw-r--r-- | recipes/linux-libc-headers/linux-libc-headers-2.6.30/asm-page.patch | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/recipes/linux-libc-headers/linux-libc-headers-2.6.30/asm-page.patch b/recipes/linux-libc-headers/linux-libc-headers-2.6.30/asm-page.patch new file mode 100644 index 0000000000..268b3eb306 --- /dev/null +++ b/recipes/linux-libc-headers/linux-libc-headers-2.6.30/asm-page.patch @@ -0,0 +1,55 @@ +This patch makes asm/page.h available with PAGE_SIZE available to +the user space again, as it was in old header sets. +It's better to not use it and fix recipes instead: +- Use getpagesize(), -D_BSD_SOURCE or -D_XOPEN_SOURCE=500 and + #include <unistd.h> +- in glibc >= 2.10 you can use PAGE_SIZE and #include <sys/user.h>. + +Index: linux-2.6.30/arch/arm/include/asm/page.h +=================================================================== +--- linux-2.6.30.orig/arch/arm/include/asm/page.h ++++ linux-2.6.30/arch/arm/include/asm/page.h +@@ -15,11 +15,12 @@ + #define PAGE_SIZE (1UL << PAGE_SHIFT) + #define PAGE_MASK (~(PAGE_SIZE-1)) + ++#ifdef __KERNEL__ + #ifndef __ASSEMBLY__ + + #ifndef CONFIG_MMU + +-#include "page-nommu.h" ++#include <asm/page-nommu.h> + + #else + +@@ -204,4 +205,5 @@ typedef struct page *pgtable_t; + + #include <asm-generic/page.h> + ++#endif /* __KERNEL__ */ + #endif +Index: linux-2.6.30/include/asm-generic/Kbuild.asm +=================================================================== +--- linux-2.6.30.orig/include/asm-generic/Kbuild.asm ++++ linux-2.6.30/include/asm-generic/Kbuild.asm +@@ -16,6 +16,7 @@ unifdef-y += ioctls.h + unifdef-y += ipcbuf.h + unifdef-y += mman.h + unifdef-y += msgbuf.h ++unifdef-y += page.h + unifdef-y += param.h + unifdef-y += poll.h + unifdef-y += posix_types.h +Index: linux-2.6.30/include/asm-generic/Kbuild +=================================================================== +--- linux-2.6.30.orig/include/asm-generic/Kbuild ++++ linux-2.6.30/include/asm-generic/Kbuild +@@ -3,6 +3,7 @@ header-y += errno.h + header-y += fcntl.h + header-y += ioctl.h + header-y += mman.h ++header-y += page.h + header-y += poll.h + header-y += signal.h + header-y += statfs.h |