blob: 868ad69d4ed1513b55a093213f0bc03d8fb3d276 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
--- mozilla-release.orig/xpcom/io/nsLocalFileUnix.cpp 2013-12-05 17:08:00.000000000 +0100
+++ mozilla-release/xpcom/io/nsLocalFileUnix.cpp 2014-01-02 14:53:47.000000000 +0100
@@ -1234,8 +1234,13 @@ nsLocalFile::GetDiskSpaceAvailable(int64
&& dq.dqb_bhardlimit)
{
int64_t QuotaSpaceAvailable = 0;
+#if defined(__UCLIBC__)
+ if (dq.dqb_bhardlimit > dq.dqb_curblocks)
+ QuotaSpaceAvailable = PRInt64(fs_buf.f_bsize * (dq.dqb_bhardlimit - dq.dqb_curblocks));
+#else
if (dq.dqb_bhardlimit > dq.dqb_curspace)
QuotaSpaceAvailable = int64_t(fs_buf.F_BSIZE * (dq.dqb_bhardlimit - dq.dqb_curspace));
+#endif
if(QuotaSpaceAvailable < *aDiskSpaceAvailable) {
*aDiskSpaceAvailable = QuotaSpaceAvailable;
}
|