summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dbm/src/hash.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/dbm/src/hash.c b/dbm/src/hash.c
index 625a1644b..2eb1c7e63 100644
--- a/dbm/src/hash.c
+++ b/dbm/src/hash.c
@@ -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