Bug 571440 - Android build fails on new quota check from bug 520098 (nsLocalFileUnix.cpp), r=bsmedberg

This commit is contained in:
Matt Brubeck
2010-06-11 19:48:33 -07:00
parent e3525ff059
commit ef4abb3a4a
2 changed files with 4 additions and 6 deletions

View File

@@ -67,10 +67,8 @@
#include <fabdef.h>
#endif
#if defined(HAVE_SYS_QUOTA_H)
#if defined(HAVE_SYS_SYSMACROS_H)
#include <sys/sysmacros.h>
#endif
#if defined(HAVE_SYS_QUOTA_H) && defined(HAVE_LINUX_QUOTA_H)
#define USE_LINUX_QUOTACTL
#include <sys/quota.h>
#endif
@@ -1233,7 +1231,7 @@ nsLocalFile::GetDiskSpaceAvailable(PRInt64 *aDiskSpaceAvailable)
*/
*aDiskSpaceAvailable = (PRInt64)fs_buf.f_bsize * (fs_buf.f_bavail - 1);
#if defined(HAVE_SYS_STAT_H) || defined(HAVE_SYS_SYSMACROS_H)
#if defined(USE_LINUX_QUOTACTL)
if(!FillStatCache()) {
// Return available size from statfs