зеркало из https://github.com/mozilla/pjs.git
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
This commit is contained in:
Родитель
a751ce4ca8
Коммит
e5672f0c4c
|
@ -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> */
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче