summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtc%netscape.com <devnull@localhost>1998-08-13 04:47:03 +0000
committerwtc%netscape.com <devnull@localhost>1998-08-13 04:47:03 +0000
commitc2053c2b6eea17c540fcd22a752c95720740826b (patch)
tree79e54d42cc9476c70fd752c9096995bc0d1bf2bc
parentb9ef3ae8571c73d453de4e45c7be2d2c5a5151be (diff)
downloadnss-hg-c2053c2b6eea17c540fcd22a752c95720740826b.tar.gz
Deleted the code that sets BYTE_ORDER to LITTLE_ENDIAN on Linux, whic
on big-endian machines. Use __osf__ instead of __alpha to identify Digital Unix, which has <machine/endian.h>. Files changed: mozilla/include/mcom_db.h, mozilla/dbm/include/mcom_db.h.
-rw-r--r--dbm/include/mcom_db.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/dbm/include/mcom_db.h b/dbm/include/mcom_db.h
index 78fa11d8e..5abf0a8f0 100644
--- a/dbm/include/mcom_db.h
+++ b/dbm/include/mcom_db.h
@@ -397,12 +397,6 @@ void __dbpanic (DB *dbp);
__END_DECLS
-#ifdef linux
-#if BYTE_ORDER != LITTLE_ENDIAN
-#define BYTE_ORDER LITTLE_ENDIAN
-#endif
-#endif
-
#if defined(__hpux) || defined(__hppa)
#define BYTE_ORDER BIG_ENDIAN
#define BIG_ENDIAN 4321
@@ -419,8 +413,9 @@ __END_DECLS
#include <sys/machine.h>
#endif
-#ifdef __alpha
-#include <endian.h>
+/* Digital Unix */
+#ifdef __osf__
+#include <machine/endian.h>
#endif
#endif /* !_DB_H_ */