Fix for QNX. stat doesn't have st_blksize.

This commit is contained in:
briano%netscape.com 1999-05-13 03:04:42 +00:00
parent 3321d8d75a
commit 5eee2f1052

View File

@ -412,7 +412,11 @@ init_hash(HTAB *hashp, const char *file, HASHINFO *info)
return (NULL);
#if !defined(_WIN32) && !defined(_WINDOWS) && !defined(macintosh)
#ifdef QNX
hashp->BSIZE = statbuf.st_size;
#else
hashp->BSIZE = statbuf.st_blksize;
#endif
/* new code added by Lou to reduce block
* size down below MAX_BSIZE