17 lines
407 B
Plaintext
17 lines
407 B
Plaintext
--- include/btorder.h.orig Mon Jul 20 09:28:10 1998
|
|
+++ include/btorder.h Wed Jan 20 14:49:17 1999
|
|
@@ -26,6 +26,13 @@
|
|
|
|
#include <sys/types.h> /* try to load isa_defs.h on Solaris */
|
|
|
|
+#ifdef __OpenBSD__
|
|
+#if BYTE_ORDER == LITTLE_ENDIAN
|
|
+#define _BIT_FIELDS_LTOH
|
|
+#elif BYTE_ORDER == BIG_ENDIAN
|
|
+#define _BIT_FIELDS_HTOL
|
|
+#endif
|
|
+#endif
|
|
|
|
#if defined(_BIT_FIELDS_LTOH) || defined(_BIT_FIELDS_HTOL)
|
|
/*
|