summaryrefslogtreecommitdiff
path: root/package/firefox/patches/patch-xpcom_io_nsLocalFileUnix_cpp
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-12-29 20:27:14 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2015-12-29 20:29:43 +0100
commite17110aeb3863c1292eb3e58b7597174bea6cc85 (patch)
treeac3ca5ce5f3ff282fbf1cc22de463d473d5a8096 /package/firefox/patches/patch-xpcom_io_nsLocalFileUnix_cpp
parent6b30dd2a4fc0f9f2ed61ddae25ef63b44270deae (diff)
firefox: update to latest stable version, runtime tested on IBM X40
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..32345a436
--- /dev/null
+++ b/package/firefox/patches/patch-xpcom_io_nsLocalFileUnix_cpp
@@ -0,0 +1,16 @@
+--- firefox-42.0.orig/xpcom/io/nsLocalFileUnix.cpp 2015-10-29 23:18:01.000000000 +0100
++++ firefox-42.0/xpcom/io/nsLocalFileUnix.cpp 2015-12-17 18:31:49.639751737 +0100
+@@ -1407,8 +1407,13 @@ nsLocalFile::GetDiskSpaceAvailable(int64
+ && dq.dqb_bhardlimit) {
+ int64_t QuotaSpaceAvailable = 0;
+ // dqb_bhardlimit is count of BLOCK_SIZE blocks, dqb_curspace is bytes
++#if defined(__UCLIBC__)
++ if ((BLOCK_SIZE * dq.dqb_bhardlimit) > dq.dqb_curblocks)
++ QuotaSpaceAvailable = int64_t(fs_buf.F_BSIZE * (dq.dqb_bhardlimit - dq.dqb_curblocks));
++#else
+ if ((BLOCK_SIZE * dq.dqb_bhardlimit) > dq.dqb_curspace)
+ QuotaSpaceAvailable = int64_t(BLOCK_SIZE * dq.dqb_bhardlimit - dq.dqb_curspace);
++#endif
+ if (QuotaSpaceAvailable < *aDiskSpaceAvailable) {
+ *aDiskSpaceAvailable = QuotaSpaceAvailable;
+ }