From a0aae4cf8053d0244bcdcbbc8ec0dd731184557f Mon Sep 17 00:00:00 2001 From: "wtc%netscape.com" Date: Tue, 27 Nov 2001 01:06:33 +0000 Subject: [PATCH] Bugzilla bug 111287: checked in a patch from Dave Inglis to fix the QNX6 port of dbm. r=wtc. Modified files: include/mcom_db.h src/hash.c git-svn-id: svn://10.0.0.236/trunk@108953 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/dbm/include/mcom_db.h | 4 ++++ mozilla/dbm/src/hash.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/mozilla/dbm/include/mcom_db.h b/mozilla/dbm/include/mcom_db.h index bf2014d9602..4070a0487a3 100644 --- a/mozilla/dbm/include/mcom_db.h +++ b/mozilla/dbm/include/mcom_db.h @@ -174,10 +174,14 @@ #endif #ifdef __QNX__ +#ifdef __QNXNTO__ +#include +#else #define LITTLE_ENDIAN 1234 #define BIG_ENDIAN 4321 #define BYTE_ORDER LITTLE_ENDIAN #endif +#endif #ifdef SNI /* #include */ diff --git a/mozilla/dbm/src/hash.c b/mozilla/dbm/src/hash.c index c3ceb045fcd..530160244de 100644 --- a/mozilla/dbm/src/hash.c +++ b/mozilla/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