summaryrefslogtreecommitdiff
path: root/mkspecs/qnx-x86-qcc
diff options
context:
space:
mode:
authorBernd Weimer <bweimer@blackberry.com>2013-11-26 11:22:37 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-11-28 09:50:28 +0100
commit6539f0885fc5f962b9e0e905ff34963aeee3ee6d (patch)
tree45dbfbd8e389abcafd3522f0ba303b3cb0dd8bd3 /mkspecs/qnx-x86-qcc
parent93b819b448d565e293f7564c8a3de86424411101 (diff)
downloadqt4-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/qnx-x86-qcc')
-rw-r--r--mkspecs/qnx-x86-qcc/qplatformdefs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/mkspecs/qnx-x86-qcc/qplatformdefs.h b/mkspecs/qnx-x86-qcc/qplatformdefs.h
index 8c4c33cf41..5ca27e1a30 100644
--- a/mkspecs/qnx-x86-qcc/qplatformdefs.h
+++ b/mkspecs/qnx-x86-qcc/qplatformdefs.h
@@ -83,8 +83,15 @@
#include <arpa/inet.h>
#define QT_USE_XOPEN_LFS_EXTENSIONS
+#if !defined(__EXT_QNX__READDIR64_R)
#define QT_NO_READDIR64
+#endif
#include "../common/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
#define QT_SNPRINTF ::snprintf
#define QT_VSNPRINTF ::vsnprintf