Patched fbcon to compile on newer Linux kernels that don't #define PAGE_SIZE,

since a memory page's size may vary on various architectures and kernel
 configurations.

Will use getpagesize() if it exists, the PAGE_SIZE #define from older kernels
 if that doesn't, and #error out if that's not there either...but it's
 probably 4096 in that case. We may revisit this.

   Fixes Bugzilla #392.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402273
This commit is contained in:
Ryan C. Gordon 2007-02-15 23:50:45 +00:00
parent cb20c837f4
commit 8b407756dc
3 changed files with 17 additions and 1 deletions

View file

@ -130,6 +130,7 @@
#undef HAVE_NANOSLEEP
#undef HAVE_CLOCK_GETTIME
#undef HAVE_DLVSYM
#undef HAVE_GETPAGESIZE
#else
/* We may need some replacement for stdarg.h here */