diff options
| author | Morten Johan Sørvig <morten.sorvig@nokia.com> | 2009-12-01 17:08:49 +0100 |
|---|---|---|
| committer | Morten Johan Sørvig <morten.sorvig@nokia.com> | 2009-12-01 17:08:49 +0100 |
| commit | 7b3167bc2c8f8f512f96c495bb936724928095f9 (patch) | |
| tree | 3fb270e37037e9bde2a0205660f3343e11f1582a /src/corelib | |
| parent | 6013d83abf6dc5e2d550184f9bfd36ae9eae0f3c (diff) | |
Compile/work around QT_LSEEK usage outside of file engine.
Diffstat (limited to 'src/corelib')
| -rw-r--r-- | src/corelib/io/qfile.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/corelib/io/qfile.cpp b/src/corelib/io/qfile.cpp index d4077bcb23..820bcc2337 100644 --- a/src/corelib/io/qfile.cpp +++ b/src/corelib/io/qfile.cpp @@ -1065,9 +1065,13 @@ bool QFile::open(FILE *fh, OpenMode mode) if (mode & Append) { seek(size()); } else { +#ifdef Q_OS_NACL + qFatal("NaCl: Unsupported code path"); // ### nacl +#else qint64 pos = (qint64)QT_FTELL(fh); if (pos != -1) seek(pos); +#endif } return true; } @@ -1125,9 +1129,13 @@ bool QFile::open(int fd, OpenMode mode) if (mode & Append) { seek(size()); } else { +#ifdef Q_OS_NACL + qFatal("NaCl: Unsupported code path"); // ### nacl +#else qint64 pos = (qint64)QT_LSEEK(fd, QT_OFF_T(0), SEEK_CUR); if (pos != -1) seek(pos); +#endif } return true; } |
