Sophie

Sophie

distrib > Mandriva > 2007.1 > x86_64 > by-pkgid > befcda80c1a164e8b5d57687719ec9f0 > files > 4

qt4-4.2.3-3mdv2007.1.src.rpm

--- 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)