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
Родитель 3fb0fc82d9
Коммит ba646d71c9
2 изменённых файлов: 4 добавлений и 6 удалений

Просмотреть файл

@ -3302,7 +3302,7 @@ AC_CHECK_HEADERS(sys/statvfs.h sys/statfs.h sys/vfs.h sys/mount.h)
dnl Quota support dnl Quota support
AC_CHECK_HEADERS(sys/quota.h) AC_CHECK_HEADERS(sys/quota.h)
AC_CHECK_HEADERS(sys/sysmacros.h) AC_CHECK_HEADERS(linux/quota.h)
dnl Try for MMX support dnl Try for MMX support
dnl NB - later gcc versions require -mmmx for this header to be successfully dnl NB - later gcc versions require -mmmx for this header to be successfully

Просмотреть файл

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