r968 - trunk/XFree86

djensen at linuxfromscratch.org djensen at linuxfromscratch.org
Fri Jun 10 15:40:37 PDT 2005


Author: djensen
Date: 2005-06-10 16:40:36 -0600 (Fri, 10 Jun 2005)
New Revision: 968

Added:
   trunk/XFree86/XFree86-4.5.0-kernel_headers-1.patch
Log:
add Kernel header patch for XFree86-4.5.0

Added: trunk/XFree86/XFree86-4.5.0-kernel_headers-1.patch
===================================================================
--- trunk/XFree86/XFree86-4.5.0-kernel_headers-1.patch	2005-06-09 04:38:27 UTC (rev 967)
+++ trunk/XFree86/XFree86-4.5.0-kernel_headers-1.patch	2005-06-10 22:40:36 UTC (rev 968)
@@ -0,0 +1,25 @@
+Submitted By: David Jensen (djensen at linuxfromscratch dot org)
+Date: 2005-06-08
+Initial Package Version: 4.5.0
+Origin: David Jensen, copied the change from xorg
+Description: Fixes PAGE_MASK error with userspace kernel headers
+
+$LastChangedBy: djensen $
+$Date: 2005-06-10 17:30:30 -0500 (Fri, 10 Jun 2005) $
+
+--- xc.orig/programs/Xserver/hw/xfree86/fbdevhw/fbdevhw.c	2003-10-30 11:37:16.000000000 -0600
++++ xc/programs/Xserver/hw/xfree86/fbdevhw/fbdevhw.c	2005-06-08 17:04:12.000000000 -0500
+@@ -14,7 +14,12 @@
+ #include "fbdevhw.h"
+ #include "fbpriv.h"
+ 
+-#include "asm/page.h"	/* #define for PAGE_* */
++#if 0
++/* kernel header doesn't work with -ansi */
++# include "asm/page.h"	/* #define for PAGE_* */
++#else
++# define PAGE_MASK               (~(getpagesize() - 1))
++#endif
+ 
+ #include "globals.h"
+ #define DPMS_SERVER




More information about the patches mailing list