diff options
author | wtc%netscape.com <devnull@localhost> | 2001-11-27 01:06:33 +0000 |
---|---|---|
committer | wtc%netscape.com <devnull@localhost> | 2001-11-27 01:06:33 +0000 |
commit | a23c2b3a5f8174f5efa9e8a974f847d6f0b7d9d2 (patch) | |
tree | a77a506cd766983301fa63e47cfd35f16b931fbd /dbm | |
parent | 056910a0aa19afe57253b3a56a24db0f3832fdc6 (diff) | |
download | nss-hg-a23c2b3a5f8174f5efa9e8a974f847d6f0b7d9d2.tar.gz |
Bugzilla bug 111287: checked in a patch from Dave Inglis <dinglis@qnx.com>
to fix the QNX6 port of dbm. r=wtc.
Modified files: include/mcom_db.h src/hash.c
Diffstat (limited to 'dbm')
-rw-r--r-- | dbm/include/mcom_db.h | 4 | ||||
-rw-r--r-- | dbm/src/hash.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/dbm/include/mcom_db.h b/dbm/include/mcom_db.h index bf2014d96..4070a0487 100644 --- a/dbm/include/mcom_db.h +++ b/dbm/include/mcom_db.h @@ -174,10 +174,14 @@ #endif #ifdef __QNX__ +#ifdef __QNXNTO__ +#include <sys/param.h> +#else #define LITTLE_ENDIAN 1234 #define BIG_ENDIAN 4321 #define BYTE_ORDER LITTLE_ENDIAN #endif +#endif #ifdef SNI /* #include <sys/hetero.h> */ diff --git a/dbm/src/hash.c b/dbm/src/hash.c index c3ceb045f..530160244 100644 --- a/dbm/src/hash.c +++ b/dbm/src/hash.c @@ -419,8 +419,8 @@ init_hash(HTAB *hashp, const char *file, HASHINFO *info) return (NULL); #if !defined(_WIN32) && !defined(_WINDOWS) && !defined(macintosh) && !defined(VMS) && !defined(XP_OS2) -#ifdef __QNX__ - hashp->BSIZE = statbuf.st_size; +#if defined(__QNX__) && !defined(__QNXNTO__) + hashp->BSIZE = 512; /* prefered blk size on qnx4 */ #else hashp->BSIZE = statbuf.st_blksize; #endif |