summaryrefslogtreecommitdiffstats
path: root/mkspecs/common/aix
diff options
context:
space:
mode:
authorJoão Abecasis <joao@trolltech.com>2010-01-21 18:48:33 (GMT)
committerJoão Abecasis <joao@trolltech.com>2010-01-29 13:33:49 (GMT)
commit1492a2edf269b368abd2af9f8ffb474489609b5d (patch)
treea009a5ff373b739b8f5d06814e49b9675d1b6788 /mkspecs/common/aix
parent6d8ea540bd123270f0010eb5fa5e68a510ca89e7 (diff)
downloadQt-1492a2edf269b368abd2af9f8ffb474489609b5d.zip
Qt-1492a2edf269b368abd2af9f8ffb474489609b5d.tar.gz
Qt-1492a2edf269b368abd2af9f8ffb474489609b5d.tar.bz2
Use X/Open LFS extensions for 64-bit support on directory iteration
This boils down to using readdir64(_r) and struct dirent64 where available. I assumed these are available in the same platforms other such extensions are already being used. AIX uses the additional type DIR64 and opendir64/closedir64 to manipulate it. Task-number: QTBUG-2781 Reviewed-by: Thiago Macieira
Diffstat (limited to 'mkspecs/common/aix')
-rw-r--r--mkspecs/common/aix/qplatformdefs.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/mkspecs/common/aix/qplatformdefs.h b/mkspecs/common/aix/qplatformdefs.h
index 57c5a76..b3abf68 100644
--- a/mkspecs/common/aix/qplatformdefs.h
+++ b/mkspecs/common/aix/qplatformdefs.h
@@ -101,6 +101,16 @@
#define QT_SOCKOPTLEN_T int
#endif
+#ifdef QT_LARGEFILE_SUPPORT
+#undef QT_DIR
+#undef QT_OPENDIR
+#undef QT_CLOSEDIR
+
+#define QT_DIR DIR64
+#define QT_OPENDIR ::opendir64
+#define QT_CLOSEDIR ::closedir64
+#endif
+
#if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE-0 >= 500)
// AIX 4.3 and better
#define QT_SNPRINTF ::snprintf