diff options
author | Bradley T. Hughes <bradley.hughes@nokia.com> | 2011-11-08 17:35:03 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-11-14 09:45:10 +0100 |
commit | 0109f86e51497141516c567b0640128e167cc124 (patch) | |
tree | d093f117a6a74fa209cbee6c9f4e054d9b9b8344 /src/corelib/io/qfilesystemwatcher_fsevents_p.h | |
parent | 578e6d6834ae8608fb98f1f871e7bd21d64aaf1e (diff) |
Don't use deprecated functions on Mac OS X
io/qfilesystemwatcher_fsevents.cpp:346:15: warning: 'stat64' is
deprecated [-Wdeprecated-declarations]
if (::stat64(it->absolutePath, &newInfo) == 0) {
^
According to 'man 2 stat' on Mac OS X, the stat64() function is
deprecated in 10.6 and above. Instead, we are supposed to define
the _DARWIN_USE_64_BIT_INODE which enables the 64-bit ino_t member in
the stat struct and uses function symbol suffixes to call the correct
version of stat with 64-bit inode support.
Change-Id: I697374186c7f4d69df783f06962ca5644222194d
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
Diffstat (limited to 'src/corelib/io/qfilesystemwatcher_fsevents_p.h')
-rw-r--r-- | src/corelib/io/qfilesystemwatcher_fsevents_p.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/io/qfilesystemwatcher_fsevents_p.h b/src/corelib/io/qfilesystemwatcher_fsevents_p.h index 2466a6e3d8..3830002c0a 100644 --- a/src/corelib/io/qfilesystemwatcher_fsevents_p.h +++ b/src/corelib/io/qfilesystemwatcher_fsevents_p.h @@ -75,7 +75,7 @@ typedef uint64_t FSEventStreamEventId; QT_BEGIN_NAMESPACE #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5 -// Yes, I use a stat64 element here. QFileInfo requires too much knowledge about implementation +// Yes, I use a stat element here. QFileInfo requires too much knowledge about implementation // details to be used as a long-standing record. Since I'm going to have to store this information, I can // do the stat myself too. struct PathInfo { @@ -83,7 +83,7 @@ struct PathInfo { : originalPath(path), absolutePath(absPath) {} QString originalPath; // The path we need to emit QByteArray absolutePath; // The path we need to stat. - struct ::stat64 savedInfo; // All the info for the path so we can compare it. + struct ::stat savedInfo; // All the info for the path so we can compare it. }; typedef QLinkedList<PathInfo> PathInfoList; typedef QHash<QString, PathInfoList> PathHash; |