зеркало из https://github.com/mozilla/pjs.git
Bug 571440 - Android build fails on new quota check from bug 520098 (nsLocalFileUnix.cpp), r=bsmedberg
This commit is contained in:
Родитель
3fb0fc82d9
Коммит
ba646d71c9
|
@ -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
|
||||||
|
|
Загрузка…
Ссылка в новой задаче