Don't use deprecated functions on Mac OS X
authorBradley T. Hughes <bradley.hughes@nokia.com>
Tue, 8 Nov 2011 16:35:03 +0000 (17:35 +0100)
committerQt by Nokia <qt-info@nokia.com>
Mon, 14 Nov 2011 08:45:10 +0000 (09:45 +0100)
commit0109f86e51497141516c567b0640128e167cc124
treed093f117a6a74fa209cbee6c9f4e054d9b9b8344
parent578e6d6834ae8608fb98f1f871e7bd21d64aaf1e
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>
src/corelib/io/qfilesystemwatcher_fsevents.cpp
src/corelib/io/qfilesystemwatcher_fsevents_p.h