summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbriano%netscape.com <devnull@localhost>1999-05-13 03:04:42 +0000
committerbriano%netscape.com <devnull@localhost>1999-05-13 03:04:42 +0000
commitbc48160780344d0e6887931549c3b5c69e7b9f99 (patch)
tree17adc20867bc0d6af0f3e005fbd70bf4e5d6913c
parent5cbac88454b208498969bcfaff20d9b09a4f77cd (diff)
downloadnss-hg-bc48160780344d0e6887931549c3b5c69e7b9f99.tar.gz
Fix for QNX. stat doesn't have st_blksize.XPCOM20_BASE
-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