mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 06:15:43 +00:00
Fix for NTO, which uses statvfs.
This commit is contained in:
parent
0fbca381de
commit
564cbd2dcf
@ -456,7 +456,7 @@ PRUint32 nsFileSpec::GetDiskSpaceAvailable() const
|
|||||||
sprintf(curdir, "%.200s", (const char*)mPath);
|
sprintf(curdir, "%.200s", (const char*)mPath);
|
||||||
|
|
||||||
struct STATFS fs_buf;
|
struct STATFS fs_buf;
|
||||||
#if defined(__QNX__) /* Maybe this should be handled differently? */
|
#if defined(__QNX__) && !defined(HAVE_STATVFS) /* Maybe this should be handled differently? */
|
||||||
if (STATFS(curdir, &fs_buf, 0, 0) < 0)
|
if (STATFS(curdir, &fs_buf, 0, 0) < 0)
|
||||||
#else
|
#else
|
||||||
if (STATFS(curdir, &fs_buf) < 0)
|
if (STATFS(curdir, &fs_buf) < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user