diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2013-10-17 14:08:41 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2013-10-17 14:08:41 +0200 |
commit | 25683df22c6781907b98eeb3ea441e56c7c3f45a (patch) | |
tree | 8d447f05c599aa8ea287e50599a49ca1c8a87d70 /package/firefox/patches/patch-xpcom_io_nsLocalFileUnix_cpp | |
parent | e4cc8d61290b93fad36ac816d2f6766edfc73e86 (diff) | |
parent | 88dd48f85bc6191e990650613c1cea87db978485 (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/firefox/patches/patch-xpcom_io_nsLocalFileUnix_cpp')
-rw-r--r-- | package/firefox/patches/patch-xpcom_io_nsLocalFileUnix_cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/package/firefox/patches/patch-xpcom_io_nsLocalFileUnix_cpp b/package/firefox/patches/patch-xpcom_io_nsLocalFileUnix_cpp new file mode 100644 index 000000000..e9c2a28ad --- /dev/null +++ b/package/firefox/patches/patch-xpcom_io_nsLocalFileUnix_cpp @@ -0,0 +1,16 @@ +--- mozilla-release.orig/xpcom/io/nsLocalFileUnix.cpp 2013-09-11 01:15:27.000000000 +0200 ++++ mozilla-release/xpcom/io/nsLocalFileUnix.cpp 2013-10-14 14:33:08.000000000 +0200 +@@ -1256,8 +1256,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; + } |