don't depend on a list of archs to determine endianess,

unbreaks gallium build on sparc64.  found the hard way by florian@
ok kettenis@
This commit is contained in:
jsg 2013-08-14 13:25:56 +00:00
parent 8d53c46746
commit 977241acdf

View File

@ -129,6 +129,16 @@
# define PIPE_ARCH_BIG_ENDIAN
#endif
#elif defined(__OpenBSD__)
#include <sys/types.h>
#include <machine/endian.h>
#if _BYTE_ORDER == _LITTLE_ENDIAN
# define PIPE_ARCH_LITTLE_ENDIAN
#elif _BYTE_ORDER == _BIG_ENDIAN
# define PIPE_ARCH_BIG_ENDIAN
#endif
#else
#if defined(PIPE_ARCH_X86) || defined(PIPE_ARCH_X86_64)