--- a/src/kernel/qpixmapcache.cpp 2005-01-23 14:00:46.000000000 +0000 +++ b/src/kernel/qpixmapcache.cpp 2009-11-05 22:49:44.000000000 +0000 @@ -119,13 +119,13 @@ #include #include #include +#include #ifdef THROW_AWAY_UNUSED_PAGES # include // madvise -# include // PAGE_SIZE,PAGE_MASK,PAGE_ALIGN -# ifndef PAGE_ALIGN +# define PAGE_SIZE getpagesize() +# define PAGE_MASK (~(PAGE_SIZE-1)) # define PAGE_ALIGN(addr) (((addr)+PAGE_SIZE-1)&PAGE_MASK) -# endif // PAGE_ALIGN #endif // THROW_AWAY_UNUSED_PAGES