summaryrefslogtreecommitdiff
path: root/mkspecs/linux-pgcc/qplatformdefs.h
diff options
context:
space:
mode:
authorJoão Abecasis <joao@abecasis.name>2009-10-07 20:33:25 +0200
committerJoão Abecasis <joao@abecasis.name>2009-10-21 13:37:56 +0200
commit2a293f91a6b550cd72851d08616b4a8199faabdd (patch)
treec87231094d48091e544b90eea3efb95ccd713f81 /mkspecs/linux-pgcc/qplatformdefs.h
parent5370e5ff5481a64a7d4a7c182155ce893740abe0 (diff)
downloadqt4-tools-2a293f91a6b550cd72851d08616b4a8199faabdd.tar.gz
Introducing QT_MMAP
In platforms with Large File Support, we use mmap64, to be able to handle offsets (and therefore files) larger than 2Gb. Reviewed-by: Thiago Macieira
Diffstat (limited to 'mkspecs/linux-pgcc/qplatformdefs.h')
-rw-r--r--mkspecs/linux-pgcc/qplatformdefs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/mkspecs/linux-pgcc/qplatformdefs.h b/mkspecs/linux-pgcc/qplatformdefs.h
index 5bf968644e..0c3a07e592 100644
--- a/mkspecs/linux-pgcc/qplatformdefs.h
+++ b/mkspecs/linux-pgcc/qplatformdefs.h
@@ -110,6 +110,7 @@
#define QT_FTELL ::ftello64
#define QT_FGETPOS ::fgetpos64
#define QT_FSETPOS ::fsetpos64
+#define QT_MMAP ::mmap64
#define QT_FPOS_T fpos64_t
#define QT_OFF_T off64_t
#else
@@ -118,6 +119,7 @@
#define QT_FTELL ::ftell
#define QT_FGETPOS ::fgetpos
#define QT_FSETPOS ::fsetpos
+#define QT_MMAP ::mmap
#define QT_FPOS_T fpos_t
#define QT_OFF_T long
#endif