patch-xpcom_io_nsLocalFileUnix_cpp 772 B

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