# HG changeset patch # User Ryan C. Gordon # Date 1173834564 0 # Node ID 0dd8bdf173e25c4482b5d3e31d6f39dcc1b73bfe # Parent 4e02435ad2be94dd738e3efc5b9752d8d2c9999b 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. diff -r 4e02435ad2be -r 0dd8bdf173e2 src/video/fbcon/SDL_fbvideo.c --- 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 #include #include + +#ifndef HAVE_GETPAGESIZE #include /* For definition of PAGE_SIZE */ +#endif + #include #include "SDL_video.h"