18 lines
487 B
Plaintext
18 lines
487 B
Plaintext
$OpenBSD: patch-include_btorder_h,v 1.2 2004/11/30 05:44:03 jolan Exp $
|
|
--- include/btorder.h.orig 2003-06-15 14:41:00.000000000 -0700
|
|
+++ include/btorder.h 2004-01-15 23:45:38.000000000 -0800
|
|
@@ -20,6 +20,13 @@
|
|
* Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
*/
|
|
|
|
+#ifdef __OpenBSD__
|
|
+#if BYTE_ORDER == LITTLE_ENDIAN
|
|
+#define _BIT_FIELDS_LTOH
|
|
+#elif BYTE_ORDER == BIG_ENDIAN
|
|
+#define _BIT_FIELDS_HTOL
|
|
+#endif
|
|
+#endif
|
|
|
|
#ifndef _BTORDER_H
|
|
#define _BTORDER_H
|