From 3782ccee066f5dafc23a1441c445e64baf94d8a1 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 14 Mar 2007 01:09:24 +0000 Subject: [PATCH] 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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/video/fbcon/SDL_fbvideo.c b/src/video/fbcon/SDL_fbvideo.c index baf6aeb24..d58d39957 100644 --- a/src/video/fbcon/SDL_fbvideo.c +++ b/src/video/fbcon/SDL_fbvideo.c @@ -29,7 +29,11 @@ #include #include #include + +#ifndef HAVE_GETPAGESIZE #include /* For definition of PAGE_SIZE */ +#endif + #include #include "SDL_video.h"