about summary refs log tree commit diff
path: root/db/hash
diff options
context:
space:
mode:
Diffstat (limited to 'db/hash')
-rw-r--r--db/hash/hash.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/db/hash/hash.c b/db/hash/hash.c
index 08f2a7e3c8..0267da8c60 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);
 	}