summaryrefslogtreecommitdiff
path: root/package/firefox/patches/patch-xpcom_io_nsLocalFileUnix_cpp
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-10-17 18:25:48 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2013-10-17 18:25:48 +0200
commit94e55c5b6cb493d9467686088a7b159322eeda5f (patch)
tree791a6908a5eaa6ad611bbe587cfc28d2428572a0 /package/firefox/patches/patch-xpcom_io_nsLocalFileUnix_cpp
parentf7ae07959a3de464468de2a07ce9970fedf13931 (diff)
parent6e2120ea29a30b1379ee9454ab410088fac0e8f7 (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_cpp16
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;
+ }