summaryrefslogtreecommitdiff
path: root/packages/libsdl/libsdl-qpe-1.2.9/no-PAGE_SIZE.patch
diff options
context:
space:
mode:
authorPaul Sokolovsky <pmiscml@gmail.com>2007-05-25 08:07:22 +0000
committerPaul Sokolovsky <pmiscml@gmail.com>2007-05-25 08:07:22 +0000
commit43fb8ca56a22860ebaac1dd2750a5a0b875cfe4d (patch)
tree71b85aa6ddfd2515e34562c81af0e57ef154b398 /packages/libsdl/libsdl-qpe-1.2.9/no-PAGE_SIZE.patch
parent3e08b5a4faff2448d6aef8a52a9ed0eca96fbf4f (diff)
libsdl-qpe 1.2.9: Fix build issue after recent kernel headers and gcc upgrades.
* There was two errors - now well-known PAGE_SIZE one, and, apparently, gcc4.1.2 changed extern "C" rules. * Fixes #2294.
Diffstat (limited to 'packages/libsdl/libsdl-qpe-1.2.9/no-PAGE_SIZE.patch')
-rw-r--r--packages/libsdl/libsdl-qpe-1.2.9/no-PAGE_SIZE.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/packages/libsdl/libsdl-qpe-1.2.9/no-PAGE_SIZE.patch b/packages/libsdl/libsdl-qpe-1.2.9/no-PAGE_SIZE.patch
new file mode 100644
index 0000000000..856aaf2472
--- /dev/null
+++ b/packages/libsdl/libsdl-qpe-1.2.9/no-PAGE_SIZE.patch
@@ -0,0 +1,11 @@
+--- SDL-1.2.9-orig/src/video/qtopia/SDL_sysvideo.cc.org 2007-05-25 07:07:32.000000000 +0000
++++ SDL-1.2.9-orig/src/video/qtopia/SDL_sysvideo.cc 2007-05-25 07:24:48.000000000 +0000
+@@ -809,7 +809,7 @@
+ current->pitch = finfo.line_length;
+ current->flags = (SDL_FULLSCREEN|SDL_HWSURFACE);
+ mapped_offset = (((long)finfo.smem_start) -
+- (((long)finfo.smem_start)&~(PAGE_SIZE-1)));
++ (((long)finfo.smem_start)&~(getpagesize()-1)));
+ mapped_memlen = finfo.smem_len+mapped_offset;
+ if(console_fd >0 ) {
+ mapped_mem = mmap(NULL, mapped_memlen,PROT_READ|PROT_WRITE, MAP_SHARED, console_fd, 0);