diff options
author | João Abecasis <joao@abecasis.name> | 2009-10-07 18:33:25 (GMT) |
---|---|---|
committer | João Abecasis <joao@abecasis.name> | 2009-10-21 11:37:56 (GMT) |
commit | 2a293f91a6b550cd72851d08616b4a8199faabdd (patch) | |
tree | c87231094d48091e544b90eea3efb95ccd713f81 /mkspecs/solaris-g++-64 | |
parent | 5370e5ff5481a64a7d4a7c182155ce893740abe0 (diff) | |
download | Qt-2a293f91a6b550cd72851d08616b4a8199faabdd.zip Qt-2a293f91a6b550cd72851d08616b4a8199faabdd.tar.gz Qt-2a293f91a6b550cd72851d08616b4a8199faabdd.tar.bz2 |
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/solaris-g++-64')
-rw-r--r-- | mkspecs/solaris-g++-64/qplatformdefs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mkspecs/solaris-g++-64/qplatformdefs.h b/mkspecs/solaris-g++-64/qplatformdefs.h index 09aabfd..a6f9c8a 100644 --- a/mkspecs/solaris-g++-64/qplatformdefs.h +++ b/mkspecs/solaris-g++-64/qplatformdefs.h @@ -128,6 +128,7 @@ static inline int qt_socket_bind(int s, struct sockaddr *addr, QT_SOCKLEN_T addr #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 @@ -136,6 +137,7 @@ static inline int qt_socket_bind(int s, struct sockaddr *addr, QT_SOCKLEN_T addr #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 |