summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Krelin <hacker@klever.net>2007-05-11 08:50:26 +0000
committerKoen Kooi <koen@openembedded.org>2007-05-11 08:50:26 +0000
commitfe73926a2b4de9b3dda3409b7d9cbcb41a0e4a31 (patch)
tree373a51255314f9fe6b45ae624e6f29bb6e75bca2
parent2550ac0a2fbb8aca072bc67e565e76a66aab7b20 (diff)
evas: fix build against recent kernel-headers, closes #2216
-rw-r--r--packages/efl/evas.inc1
-rw-r--r--packages/efl/evas/pagesize.patch13
2 files changed, 14 insertions, 0 deletions
diff --git a/packages/efl/evas.inc b/packages/efl/evas.inc
index ceca03c0a8..5e34bb3014 100644
--- a/packages/efl/evas.inc
+++ b/packages/efl/evas.inc
@@ -13,6 +13,7 @@ export FREETYPE_CONFIG = "${STAGING_BINDIR_CROSS}/freetype-config"
SRC_URI = "http://enlightenment.freedesktop.org/files/evas-${PV}.tar.gz \
file://fix-configure.patch;patch=1 \
+ file://pagesize.patch;patch=1 \
${E_CVS};module=e17/libs/evas/m4;date=20060101"
S = "${WORKDIR}/evas-${PV}"
diff --git a/packages/efl/evas/pagesize.patch b/packages/efl/evas/pagesize.patch
new file mode 100644
index 0000000000..5efd16a96e
--- /dev/null
+++ b/packages/efl/evas/pagesize.patch
@@ -0,0 +1,13 @@
+diff --git a/src/modules/engines/fb/evas_fb_main.c b/src/modules/engines/fb/evas_fb_main.c
+index e26c171..75e0743 100644
+--- a/src/modules/engines/fb/evas_fb_main.c
++++ b/src/modules/engines/fb/evas_fb_main.c
+@@ -530,7 +530,7 @@ fb_postinit(FB_Mode *mode)
+ fb_cleanup();
+ exit(1);
+ }
+- mode->mem_offset = (unsigned)(fb_fix.smem_start) & (~PAGE_MASK);
++ mode->mem_offset = (unsigned)(fb_fix.smem_start) & (getpagesize()-1);
+ mode->mem = (unsigned char *)mmap(NULL, fb_fix.smem_len + mode->mem_offset,
+ PROT_WRITE | PROT_READ, MAP_SHARED, fb, 0);
+ if ((int)mode->mem == -1)