summaryrefslogtreecommitdiff
path: root/package/firefox/patches/patch-xpcom_io_nsLocalFileUnix_cpp
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-10-17 13:58:23 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2013-10-17 13:58:23 +0200
commitf043b8522e55308488448593bb4997614732a30a (patch)
tree10eb6f5cf5a0f5aeebe278a518fecbea826843c6 /package/firefox/patches/patch-xpcom_io_nsLocalFileUnix_cpp
parent0e9ca8afb6da39fea0555d5882e8eb293c3efb62 (diff)
fix uClibc build
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;
+ }