Skip to content

Commit

Permalink
Linux fbcon: don't include asm/page.h if we know getpagesize() exists…
Browse files Browse the repository at this point in the history
…, 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.
  • Loading branch information
icculus committed Mar 14, 2007
1 parent d294ef1 commit 3782cce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/video/fbcon/SDL_fbvideo.c
Expand Up @@ -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"
Expand Down

0 comments on commit 3782cce

Please sign in to comment.