diff options
author | Bernd Weimer <bweimer@blackberry.com> | 2013-11-26 11:22:37 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-11-28 09:50:28 +0100 |
commit | 6539f0885fc5f962b9e0e905ff34963aeee3ee6d (patch) | |
tree | 45dbfbd8e389abcafd3522f0ba303b3cb0dd8bd3 /mkspecs/common | |
parent | 93b819b448d565e293f7564c8a3de86424411101 (diff) | |
download | qt4-tools-6539f0885fc5f962b9e0e905ff34963aeee3ee6d.tar.gz |
QNX: Make use of _readdir64_r
Latest QNX versions support _readdir64_r. It will be used by
QFileSystemIterator now, when available to support large file
systems.
Backport from qtbase/5d8c05baf478d8eb8cb7ce827caa2c1103f5fa3f
Change-Id: I264cc39a0cae6e84ed0db2e10df5ea22c8ae3df4
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
Diffstat (limited to 'mkspecs/common')
-rw-r--r-- | mkspecs/common/qnx/qplatformdefs.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mkspecs/common/qnx/qplatformdefs.h b/mkspecs/common/qnx/qplatformdefs.h index d797abe7c4..bbcd1ad1a9 100644 --- a/mkspecs/common/qnx/qplatformdefs.h +++ b/mkspecs/common/qnx/qplatformdefs.h @@ -74,8 +74,15 @@ #include <arpa/inet.h> #define QT_USE_XOPEN_LFS_EXTENSIONS +#if !defined(__EXT_QNX__READDIR64_R) #define QT_NO_READDIR64 +#endif #include "../posix/qplatformdefs.h" +#if defined(__EXT_QNX__READDIR64_R) +#define QT_EXT_QNX_READDIR_R ::_readdir64_r +#elif defined(__EXT_QNX__READDIR_R) +#define QT_EXT_QNX_READDIR_R ::_readdir_r +#endif #include <stdlib.h> |