diff options
author | João Abecasis <joao@trolltech.com> | 2010-02-12 09:45:17 (GMT) |
---|---|---|
committer | João Abecasis <joao@trolltech.com> | 2010-02-12 10:01:37 (GMT) |
commit | ab1e94988920c3764e7f6567eb2994666b679e13 (patch) | |
tree | c69b2364ac1b01bd7ef89e7220adba6235099c3f /mkspecs/common/posix | |
parent | 2bc7567d3da4c3adf396fbbbbfbf27c1c6fdd602 (diff) | |
download | Qt-ab1e94988920c3764e7f6567eb2994666b679e13.zip Qt-ab1e94988920c3764e7f6567eb2994666b679e13.tar.gz Qt-ab1e94988920c3764e7f6567eb2994666b679e13.tar.bz2 |
readdir64 is not available on HP-UX
Instead, 64-bit inode numbers in dirent are documented to be truncated.
Oh, well.
New define QT_NO_READDIR64 allows blacklisting other platforms that
support open64 and friends, but not readdir64.
Reviewed-by: Thiago Macieira
Diffstat (limited to 'mkspecs/common/posix')
-rw-r--r-- | mkspecs/common/posix/qplatformdefs.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mkspecs/common/posix/qplatformdefs.h b/mkspecs/common/posix/qplatformdefs.h index e29bc6f..6310257 100644 --- a/mkspecs/common/posix/qplatformdefs.h +++ b/mkspecs/common/posix/qplatformdefs.h @@ -138,7 +138,9 @@ #define QT_OPENDIR ::opendir #define QT_CLOSEDIR ::closedir -#if defined(QT_USE_XOPEN_LFS_EXTENSIONS) && defined(QT_LARGEFILE_SUPPORT) +#if defined(QT_LARGEFILE_SUPPORT) \ + && defined(QT_USE_XOPEN_LFS_EXTENSIONS) \ + && !defined(QT_NO_READDIR64) #define QT_DIRENT struct dirent64 #define QT_READDIR ::readdir64 #define QT_READDIR_R ::readdir64_r |