On 03/10/2014 06:20 AM, Jonathan Gray wrote:
Still looking to have this merged...

On Thu, Aug 15, 2013 at 12:17:27AM +1000, Jonathan Gray wrote:
Signed-off-by: Jonathan Gray <j...@jsg.id.au>
---
  src/gallium/include/pipe/p_config.h | 10 ++++++++++
  1 file changed, 10 insertions(+)

diff --git src/gallium/include/pipe/p_config.h 
src/gallium/include/pipe/p_config.h
index 1588a92..9af5df7 100644
--- src/gallium/include/pipe/p_config.h
+++ src/gallium/include/pipe/p_config.h
@@ -153,6 +153,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) || 
defined(PIPE_ARCH_ARM) || defined(PIPE_ARCH_AARCH64)
--

Reviewed-by: Brian Paul <bri...@vmware.com>

Do you need someone to push this to master for you?

-Brian

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to