Fix for NTO, which uses statvfs.

git-svn-id: svn://10.0.0.236/trunk@40575 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
briano%netscape.com
1999-07-22 01:31:43 +00:00
parent 29b1e37aa2
commit 1a2743b4e1

View File

@@ -456,7 +456,7 @@ PRUint32 nsFileSpec::GetDiskSpaceAvailable() const
sprintf(curdir, "%.200s", (const char*)mPath);
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)
#else
if (STATFS(curdir, &fs_buf) < 0)