From 42d5d584ae612579d78004ce1b84e9574b52f4b8 Mon Sep 17 00:00:00 2001 From: "cbiesinger%web.de" Date: Fri, 16 Apr 2004 20:10:47 +0000 Subject: [PATCH] backing out 240192 patch --- xpcom/io/nsLocalFileUnix.cpp | 5 +---- xpcom/io/nsLocalFileUnix.h | 9 --------- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/xpcom/io/nsLocalFileUnix.cpp b/xpcom/io/nsLocalFileUnix.cpp index 0a465892140..2b8cf06c100 100644 --- a/xpcom/io/nsLocalFileUnix.cpp +++ b/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/xpcom/io/nsLocalFileUnix.h b/xpcom/io/nsLocalFileUnix.h index 8eaa7814e8b..b9434d8bcb2 100644 --- a/xpcom/io/nsLocalFileUnix.h +++ b/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: