diff options
Diffstat (limited to 'db/hash/hash.c')
-rw-r--r-- | db/hash/hash.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/db/hash/hash.c b/db/hash/hash.c index 08f2a7e..0267da8 100644 --- a/db/hash/hash.c +++ b/db/hash/hash.c @@ -302,7 +302,9 @@ init_hash(hashp, file, info) if (file != NULL) { if (stat(file, &statbuf)) return (NULL); +#if defined _STATBUF_ST_BLKSIZE hashp->BSIZE = statbuf.st_blksize; +#endif hashp->BSHIFT = __hash_log2(hashp->BSIZE); } |