summaryrefslogtreecommitdiff
path: root/db/btree/bt_open.c
diff options
context:
space:
mode:
Diffstat (limited to 'db/btree/bt_open.c')
-rw-r--r--db/btree/bt_open.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/db/btree/bt_open.c b/db/btree/bt_open.c
index 503db85274..1396f3a255 100644
--- a/db/btree/bt_open.c
+++ b/db/btree/bt_open.c
@@ -259,7 +259,9 @@ __bt_open(fname, flags, mode, openinfo, dflags)
* Don't overflow the page offset type.
*/
if (b.psize == 0) {
+#ifdef _STATBUF_ST_BLKSIZE
b.psize = sb.st_blksize;
+#endif
if (b.psize < MINPSIZE)
b.psize = MINPSIZE;
if (b.psize > MAX_PAGE_OFFSET + 1)