Fix for QNX. stat doesn't have st_blksize.

git-svn-id: svn://10.0.0.236/trunk@31395 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
briano%netscape.com 1999-05-13 03:04:42 +00:00
parent 7aea687f4b
commit eaa4545139

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