summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qfontengine_qws.cpp
diff options
context:
space:
mode:
authorHarald Fernengel <harald.fernengel@nokia.com>2011-02-23 10:06:12 +0100
committerHarald Fernengel <harald.fernengel@nokia.com>2011-02-23 10:06:56 +0100
commit41f529e5eb74617d7e4e7e3045307333187c18bc (patch)
tree894195cc430c9a79acc949f724aa96a3eb75a115 /src/gui/text/qfontengine_qws.cpp
parent8c26d65c8ea9bd8f102c19d6de1750cbba2985c1 (diff)
Ammend INTEGRITY fixes
Unbreak normal QWS build again
Diffstat (limited to 'src/gui/text/qfontengine_qws.cpp')
-rw-r--r--src/gui/text/qfontengine_qws.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/text/qfontengine_qws.cpp b/src/gui/text/qfontengine_qws.cpp
index b1719b34bb..b71c4a7aba 100644
--- a/src/gui/text/qfontengine_qws.cpp
+++ b/src/gui/text/qfontengine_qws.cpp
@@ -57,9 +57,7 @@
#include "qfile.h"
#include "qdir.h"
-#if defined(Q_OS_INTEGRITY)
#define QT_USE_MMAP
-#endif
#include <stdlib.h>
#ifdef QT_USE_MMAP
@@ -409,7 +407,10 @@ static void *qt_mmap(void *start, size_t length, int /*prot*/, int /*flags*/, in
return buf;
}
#else
-# define qt_mmap ::mmap
+static inline void *qt_mmap(void *start, size_t length, int prot, int flags, int fd, off_t offset)
+{
+ return mmap(start, length, prot, flags, fd, offset);
+}
#endif