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:
parent
7aea687f4b
commit
eaa4545139
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user