$NetBSD: patch-aa,v 1.11 2009/06/05 11:10:35 wiz Exp $ --- src/mesa/drivers/dri/mach64/mach64_context.h.orig 2009-01-22 19:38:33 +0200 +++ src/mesa/drivers/dri/mach64/mach64_context.h 2009-05-19 12:13:08 +0300 @@ -294,12 +294,19 @@ extern GLboolean mach64UnbindContext( __ #define LE32_OUT( x, y ) do { *(GLuint *)(x) = (y); } while (0) #define LE32_OUT_FLOAT( x, y ) do { *(GLfloat *)(x) = (y); } while (0) #else +/* XXX mesa should handle many more platforms here [properly] */ +#if defined(__NetBSD__) +#include +#include +#define bswap_32 bswap32 +#else #ifndef __OpenBSD__ #include #else #include #define bswap_32 bswap32 #endif +#endif #define LE32_IN( x ) bswap_32( *(GLuint *)(x) ) #define LE32_IN_FLOAT( x ) \