#include <sys/types.h>#ifdef Q_WS_WIN #include <io.h>#endif#ifdef Q_WS_X11 #include <unistd.h>#endifQ_LLONG seek64(int fd, Q_LLONG offset, int origin){ #ifdef Q_WS_WIN return _lseeki64(fd, offset, origin); #elif defined(Q_WS_X11) return lseek(fd, offset, origin); #endif return -1;}
DEFINES += _FILE_OFFSET_BITS=64 DEFINES += _LARGEFILE_SOURCE