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

This commit is contained in:
briano%netscape.com 1999-07-03 01:34:36 +00:00
Родитель 13b04f1de7
Коммит ceb95c0c3a
1 изменённых файлов: 4 добавлений и 0 удалений

4
network/cache/mkcache.c поставляемый
Просмотреть файл

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