changeset 3923:0dd8bdf173e2 SDL-1.2

Linux fbcon: don't include asm/page.h if we know getpagesize() exists, since we don't need it, and doing so will hit #error lines on some CPU archs. Thanks to Mike Frysinger for the heads up. Fixes Bugzilla #414.
author Ryan C. Gordon <icculus@icculus.org>
date Wed, 14 Mar 2007 01:09:24 +0000
parents 4e02435ad2be
children 7156c3b5536b
files src/video/fbcon/SDL_fbvideo.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/fbcon/SDL_fbvideo.c	Fri Feb 23 00:37:07 2007 +0000
+++ b/src/video/fbcon/SDL_fbvideo.c	Wed Mar 14 01:09:24 2007 +0000
@@ -29,7 +29,11 @@
 #include <unistd.h>
 #include <sys/ioctl.h>
 #include <sys/mman.h>
+
+#ifndef HAVE_GETPAGESIZE
 #include <asm/page.h>		/* For definition of PAGE_SIZE */
+#endif
+
 #include <linux/vt.h>
 
 #include "SDL_video.h"