| | 46 | #elif defined(__NetBSD__) || defined(__FreeBSD__) || \ |
| | 47 | defined(__OpenBSD__) || (__DragonFly__) |
| | 48 | # if defined(__OpenBSD__) |
| | 49 | # include <machine/endian.h> |
| | 50 | # else |
| | 51 | # include <sys/endian.h> |
| | 52 | # endif |
| | 53 | # if (_BYTE_ORDER == _LITTLE_ENDIAN) |
| | 54 | # define BOOST_LITTLE_ENDIAN |
| | 55 | # elif (_BYTE_ORDER == _BIG_ENDIAN) |
| | 56 | # define BOOST_BIG_ENDIAN |
| | 57 | # elif (_BYTE_ORDER == _PDP_ENDIAN) |
| | 58 | # define BOOST_PDP_ENDIAN |
| | 59 | # else |
| | 60 | # error Unknown machine endianness detected. |
| | 61 | # endif |
| | 62 | # define BOOST_BYTE_ORDER _BYTE_ORDER |