diff options
author | briano%netscape.com <devnull@localhost> | 1999-05-13 03:04:42 +0000 |
---|---|---|
committer | briano%netscape.com <devnull@localhost> | 1999-05-13 03:04:42 +0000 |
commit | bc48160780344d0e6887931549c3b5c69e7b9f99 (patch) | |
tree | 17adc20867bc0d6af0f3e005fbd70bf4e5d6913c | |
parent | 5cbac88454b208498969bcfaff20d9b09a4f77cd (diff) | |
download | nss-hg-bc48160780344d0e6887931549c3b5c69e7b9f99.tar.gz |
Fix for QNX. stat doesn't have st_blksize.XPCOM20_BASE
-rw-r--r-- | dbm/src/hash.c | 4 |
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 |