Fix for NTO, which uses statvfs.

This commit is contained in:
briano%netscape.com 1999-07-22 01:31:43 +00:00
parent 0fbca381de
commit 564cbd2dcf

View File

@ -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)