Eliminate the need to use -DQNX by switching to __QNX__, predefined by the compiler. SeaMonkey_M6_BASE XPCOM21_BASE
authorbriano%netscape.com
Fri, 14 May 1999 01:45:58 +0000
changeset 132 878b45f1eabc199c39adaf99a4d3c0b3ac62b053
parent 130 a68ad6ea6f21ac1e4d9dffb60d2dae48f9155b74
child 133 43fd53ca170b6b6c7c3bf52f37474b9a20a788ae
child 134 2a314e44e6b6d3174ec44ea277153314cdba301c
child 135 b8a9c209ec99c78cdb5b46f3064f003ac9f1a647
push idunknown
push userunknown
push dateunknown
Eliminate the need to use -DQNX by switching to __QNX__, predefined by the compiler.
dbm/include/mcom_db.h
dbm/src/hash.c
--- a/dbm/include/mcom_db.h
+++ b/dbm/include/mcom_db.h
@@ -115,17 +115,17 @@
 
 #endif /* !BYTE_ORDER */
 #endif /* __sun */
 
 #ifdef NCR
 #include <sys/endian.h>
 #endif
 
-#ifdef QNX
+#ifdef __QNX__
 #define LITTLE_ENDIAN	1234
 #define BIG_ENDIAN	4321
 #define BYTE_ORDER	LITTLE_ENDIAN
 #endif
 
 #ifdef SCO
 #include <sys/bitypes.h>
 #define MAXPATHLEN 	1024              
--- a/dbm/src/hash.c
+++ b/dbm/src/hash.c
@@ -407,17 +407,17 @@ init_hash(HTAB *hashp, const char *file,
 	memset(hashp->BITMAPS, 0, sizeof (hashp->BITMAPS));
 
 	/* Fix bucket size to be optimal for file system */
 	if (file != NULL) {
 		if (stat(file, &statbuf))
 			return (NULL);
 
 #if !defined(_WIN32) && !defined(_WINDOWS) && !defined(macintosh)
-#ifdef QNX
+#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
        	 */