$NetBSD: patch-aa,v 1.12 2010/03/27 12:26:19 tnn Exp $

--- src/mesa/drivers/dri/mach64/mach64_context.h.orig	2009-01-22 17:38:33.000000000 +0000
+++ src/mesa/drivers/dri/mach64/mach64_context.h
@@ -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 <sys/types.h>
+#include <machine/bswap.h>
+#define bswap_32 bswap32
+#else
 #ifndef __OpenBSD__
 #include <byteswap.h>
 #else
 #include <machine/endian.h>
 #define bswap_32 bswap32
 #endif
+#endif
 
 #define LE32_IN( x )		bswap_32( *(GLuint *)(x) )
 #define LE32_IN_FLOAT( x )						\
