diff --git a/src/kernel/qpixmapcache.cpp b/src/kernel/qpixmapcache.cpp index c2e7d9b..b2d42b5 100644 --- a/src/kernel/qpixmapcache.cpp +++ b/src/kernel/qpixmapcache.cpp @@ -122,7 +122,9 @@ void cleanup_pixmap_cache(); #ifdef THROW_AWAY_UNUSED_PAGES # include // madvise +# define __KERNEL__ # include // PAGE_SIZE,PAGE_MASK,PAGE_ALIGN +# undef __KERNEL__ # ifndef PAGE_ALIGN # define PAGE_ALIGN(addr) (((addr)+PAGE_SIZE-1)&PAGE_MASK) # endif // PAGE_ALIGN