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:
parent
8d53c46746
commit
977241acdf
10
dist/Mesa/src/gallium/include/pipe/p_config.h
vendored
10
dist/Mesa/src/gallium/include/pipe/p_config.h
vendored
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user