diff options
author | Michael Krelin <hacker@klever.net> | 2007-05-02 18:25:37 +0000 |
---|---|---|
committer | Paul Sokolovsky <pmiscml@gmail.com> | 2007-05-02 18:25:37 +0000 |
commit | 19e5890ea3997a0b1610800a890dffd08f3659df (patch) | |
tree | 3e84e5ab98916b83e50e2fe5fff6faf75d40c47f /packages/qte/qte-2.3.10/kernel-asm-page.patch | |
parent | f1c1d6417dde3ca1f56c94015b3679eaf1435129 (diff) |
qte, qte-mt 2.3.10: Fix build with recent kernel headers.
* Closes #2201.
Diffstat (limited to 'packages/qte/qte-2.3.10/kernel-asm-page.patch')
-rw-r--r-- | packages/qte/qte-2.3.10/kernel-asm-page.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/packages/qte/qte-2.3.10/kernel-asm-page.patch b/packages/qte/qte-2.3.10/kernel-asm-page.patch new file mode 100644 index 0000000000..cbbd114144 --- /dev/null +++ b/packages/qte/qte-2.3.10/kernel-asm-page.patch @@ -0,0 +1,14 @@ +diff --git a/src/kernel/qpixmapcache.cpp b/src/kernel/qpixmapcache.cpp +index c2e7d9b..b2d42b5 100644 +--- a/src/kernel/qpixmapcache.cpp ++++ b/src/kernel/qpixmapcache.cpp +@@ -122,7 +122,9 @@ void cleanup_pixmap_cache(); + + #ifdef THROW_AWAY_UNUSED_PAGES + # include <sys/mman.h> // madvise ++# define __KERNEL__ + # include <asm/page.h> // PAGE_SIZE,PAGE_MASK,PAGE_ALIGN ++# undef __KERNEL__ + # ifndef PAGE_ALIGN + # define PAGE_ALIGN(addr) (((addr)+PAGE_SIZE-1)&PAGE_MASK) + # endif // PAGE_ALIGN |