Ticket #6013: patch-boost_detail_endian_hpp

File patch-boost_detail_endian_hpp, 732 bytes (added by brad@…, 11 years ago)
Line 
1Index: boost/detail/endian.hpp
2===================================================================
3--- boost/detail/endian.hpp (revision 74924)
4+++ boost/detail/endian.hpp (working copy)
5@@ -43,6 +43,14 @@
6 # error Unknown machine endianness detected.
7 # endif
8 # define BOOST_BYTE_ORDER __BYTE_ORDER
9+#elif defined(__OpenBSD__)
10+# include <machine/endian.h>
11+# if (_BYTE_ORDER == _LITTLE_ENDIAN)
12+# define BOOST_LITTLE_ENDIAN
13+# elif (_BYTE_ORDER == _BIG_ENDIAN)
14+# define BOOST_BIG_ENDIAN
15+# endif
16+# define BOOST_BYTE_ORDER _BYTE_ORDER
17 #elif defined(_BIG_ENDIAN) && !defined(_LITTLE_ENDIAN) || \
18 defined(__BIG_ENDIAN__) && !defined(__LITTLE_ENDIAN__) || \
19 defined(_STLP_BIG_ENDIAN) && !defined(_STLP_LITTLE_ENDIAN)