--- qt-x11-opensource-src-4.2.2/tools/qvfb/qvfbmmap.cpp.pagesize 2006-11-27 18:26:17.000000000 +0100 +++ qt-x11-opensource-src-4.2.2/tools/qvfb/qvfbmmap.cpp 2007-02-12 10:31:57.000000000 +0100 @@ -38,6 +38,16 @@ #include <fcntl.h> #include <errno.h> #include <math.h> +#include <unistd.h> + +static inline size_t get_page_size(void) +{ + static size_t page_size = getpagesize(); + return page_size; +} + +#undef PAGE_SIZE +#define PAGE_SIZE get_page_size() QMMapViewProtocol::QMMapViewProtocol(int displayid, const QSize &s, int d, QObject *parent)