Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-fps/quakeforge/files: quakeforge-0.5.5-no-page-size.patch
Date: Sun, 14 Oct 2007 21:19:12
Message-Id: E1IhAhl-00040y-EM@stork.gentoo.org
vapier      07/10/14 21:08:57

  Added:                quakeforge-0.5.5-no-page-size.patch
  Log:
  Fix building with sanitized kernel headers #187083 by Colin Macdonald.
  (Portage version: 2.1.3.12)

Revision  Changes    Path
1.1                  games-fps/quakeforge/files/quakeforge-0.5.5-no-page-size.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/quakeforge/files/quakeforge-0.5.5-no-page-size.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/quakeforge/files/quakeforge-0.5.5-no-page-size.patch?rev=1.1&content-type=text/plain

Index: quakeforge-0.5.5-no-page-size.patch
===================================================================
do not use kernel headers' asm/page.h

http://bugs.gentoo.org/187083

--- libs/video/targets/vid_fbdev.c
+++ libs/video/targets/vid_fbdev.c
@@ -58,7 +58,7 @@
 #include <signal.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <asm/page.h>
+#define PAGE_MASK sysconf(_SC_PAGE_SIZE)
 #include <linux/kd.h>
 #include <linux/vt.h>
 #include <sys/stat.h>



-- 
gentoo-commits@g.o mailing list