(__bt_open): Only try to use st_blksize (from struct stat) if it
authordrepper <drepper>
Sat, 24 May 1997 22:08:09 +0000 (22:08 +0000)
committerdrepper <drepper>
Sat, 24 May 1997 22:08:09 +0000 (22:08 +0000)
exists for this port.

db/btree/bt_open.c

index 503db85..1396f3a 100644 (file)
@@ -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)