summaryrefslogtreecommitdiffstats
path: root/abs/core/xf86-video-ivtvfb/xf86-video-ivtv-pagesize.patch
blob: 61272f3d494b61b5d33f55d1b5d62fc3247ab57f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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) {