зеркало из https://github.com/mozilla/gecko-dev.git
backing out 240192 patch
This commit is contained in:
Родитель
2a913af4eb
Коммит
0b005761a9
|
@ -1063,12 +1063,9 @@ nsLocalFile::GetFileSize(PRInt64 *aFileSize)
|
|||
}
|
||||
#endif
|
||||
|
||||
/* XXX autoconf for and use stat64 if available */
|
||||
if (!S_ISDIR(mCachedStat.st_mode)) {
|
||||
#ifdef STAT_IS_64
|
||||
*aFileSize = mCachedStat.st_size;
|
||||
#else
|
||||
LL_UI2L(*aFileSize, (PRUint32)mCachedStat.st_size);
|
||||
#endif
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
|
@ -65,15 +65,6 @@
|
|||
#include <sys/mount.h>
|
||||
#endif
|
||||
|
||||
// 64-bit stat
|
||||
#if defined(HAVE_STAT64) && defined(HAVE_LSTAT64)
|
||||
# undef stat
|
||||
# undef lstat
|
||||
# define stat stat64
|
||||
# define lstat lstat64
|
||||
# define STAT_IS_64
|
||||
#endif
|
||||
|
||||
class NS_COM nsLocalFile : public nsILocalFile
|
||||
{
|
||||
public:
|
||||
|
|
Загрузка…
Ссылка в новой задаче