diff --git a/mozilla/xpcom/io/nsLocalFileUnix.cpp b/mozilla/xpcom/io/nsLocalFileUnix.cpp index 0a465892140..2b8cf06c100 100644 --- a/mozilla/xpcom/io/nsLocalFileUnix.cpp +++ b/mozilla/xpcom/io/nsLocalFileUnix.cpp @@ -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; } diff --git a/mozilla/xpcom/io/nsLocalFileUnix.h b/mozilla/xpcom/io/nsLocalFileUnix.h index 8eaa7814e8b..b9434d8bcb2 100644 --- a/mozilla/xpcom/io/nsLocalFileUnix.h +++ b/mozilla/xpcom/io/nsLocalFileUnix.h @@ -65,15 +65,6 @@ #include #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: