summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/xf86-video-ivtvfb/xf86-video-ivtv-pagesize.patch
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2009-04-20 21:37:50 (GMT)
committerJames Meyer <james.meyer@operamail.com>2009-04-20 21:37:50 (GMT)
commit1ece0333681f86ab6d35367e306870e5cc482ef6 (patch)
tree4db85742097da70d90f19877032a7fddef6b0126 /abs/core-testing/xf86-video-ivtvfb/xf86-video-ivtv-pagesize.patch
parent39cccbd0ad3b8266a3ea460314bb01ce79340b8f (diff)
parentd1f87e56e01ffc0c6300dafbea2cb3331bf50ab6 (diff)
downloadlinhes_pkgbuild-1ece0333681f86ab6d35367e306870e5cc482ef6.zip
linhes_pkgbuild-1ece0333681f86ab6d35367e306870e5cc482ef6.tar.gz
linhes_pkgbuild-1ece0333681f86ab6d35367e306870e5cc482ef6.tar.bz2
Merge branch 'HEAD' of ssh://jams@knoppmyth.net/mount/repository/LinHES-PKGBUILD
Diffstat (limited to 'abs/core-testing/xf86-video-ivtvfb/xf86-video-ivtv-pagesize.patch')
-rw-r--r--abs/core-testing/xf86-video-ivtvfb/xf86-video-ivtv-pagesize.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/abs/core-testing/xf86-video-ivtvfb/xf86-video-ivtv-pagesize.patch b/abs/core-testing/xf86-video-ivtvfb/xf86-video-ivtv-pagesize.patch
new file mode 100644
index 0000000..61272f3
--- /dev/null
+++ b/abs/core-testing/xf86-video-ivtvfb/xf86-video-ivtv-pagesize.patch
@@ -0,0 +1,20 @@
+diff -rauN xf86-video-ivtv-1.0.1/src/ivtv_hw.c xf86-video-ivtv-pagesize-patch/src/ivtv_hw.c
+--- xf86-video-ivtv-1.0.1/src/ivtv_hw.c 2008-02-28 08:05:23.000000000 +0100
++++ xf86-video-ivtv-pagesize-patch/src/ivtv_hw.c 2009-02-14 18:07:01.000000000 +0100
+@@ -54,7 +54,6 @@
+
+ #include "xf86cmap.h"
+
+-#include "asm/page.h" /* #define for PAGE_* */
+ #include "globals.h"
+ #define DPMS_SERVER
+ #include <X11/extensions/dpms.h>
+@@ -570,7 +569,7 @@
+ ivtvHWMapVidmem(ScrnInfoPtr pScrn)
+ {
+ ivtvHWPtr hwPtr = IVTVDEVHWPTR(pScrn);
+- long page_mask = ~(sysconf(_SC_PAGESIZE) - 1);
++ long page_mask = ~(getpagesize() - 1);
+
+ TRACE_ENTER("MapVidmem");
+ if (NULL == hwPtr->fbmem) {