Fix for QNX, whose stat struct doesn't have st_blksize.

git-svn-id: svn://10.0.0.236/trunk@38217 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
briano%netscape.com 1999-07-03 01:34:36 +00:00
parent 2daacc779d
commit 37d1a2d0e2

View File

@ -342,7 +342,11 @@ net_OpenCacheFatDB(void)
XP_StatStruct stat_entry;
if(NET_XP_Stat("", &stat_entry, xpCacheFAT) != -1)
#ifdef HAVE_ST_BLKSIZE
net_cache_file_block_size = stat_entry.st_blksize;
#else
net_cache_file_block_size = stat_entry.st_size;
#endif
}
#endif
}