Linux fbcon: don't include asm/page.h if we know getpagesize() exists, since SDL-1.2
authorRyan C. Gordon <icculus@icculus.org>
Wed, 14 Mar 2007 01:09:24 +0000
branchSDL-1.2
changeset 39230dd8bdf173e2
parent 3922 4e02435ad2be
child 3924 7156c3b5536b
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.
src/video/fbcon/SDL_fbvideo.c
     1.1 --- a/src/video/fbcon/SDL_fbvideo.c	Fri Feb 23 00:37:07 2007 +0000
     1.2 +++ b/src/video/fbcon/SDL_fbvideo.c	Wed Mar 14 01:09:24 2007 +0000
     1.3 @@ -29,7 +29,11 @@
     1.4  #include <unistd.h>
     1.5  #include <sys/ioctl.h>
     1.6  #include <sys/mman.h>
     1.7 +
     1.8 +#ifndef HAVE_GETPAGESIZE
     1.9  #include <asm/page.h>		/* For definition of PAGE_SIZE */
    1.10 +#endif
    1.11 +
    1.12  #include <linux/vt.h>
    1.13  
    1.14  #include "SDL_video.h"