Fixed FreeBSD build

This commit is contained in:
fisted 2011-06-29 22:56:49 +02:00 committed by oy
parent 123eab41c8
commit ca7c82f649

View file

@ -78,7 +78,12 @@
/* use gcc endianness definitions when available */
#if defined(__GNUC__) && !defined(__APPLE__)
#include <endian.h>
#if defined(__FreeBSD__) || defined(__OpenBSD__)
#include <sys/endian.h>
#else
#include <endian.h>
#endif
#if __BYTE_ORDER == __LITTLE_ENDIAN
#define CONF_ARCH_ENDIAN_LITTLE 1
#elif __BYTE_ORDER == __BIG_ENDIAN