summaryrefslogtreecommitdiffstats
path: root/graphics/libGL/files/extra-mach64_context.h-old
blob: 9e3b38e357cd0c8dc71c3b4271f7ef876d5b6ad5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- src/mesa/drivers/dri/mach64/mach64_context.h.orig   2012-06-27 19:59:32.000000000 +0200
+++ src/mesa/drivers/dri/mach64/mach64_context.h    2012-06-27 20:08:30.000000000 +0200
@@ -294,11 +294,14 @@
 #define LE32_OUT( x, y )   do { *(GLuint *)(x) = (y); } while (0)
 #define LE32_OUT_FLOAT( x, y ) do { *(GLfloat *)(x) = (y); } while (0)
 #else
-#ifndef __OpenBSD__
-#include <byteswap.h>
-#else
+#if defined(__OpenBSD__)
 #include <machine/endian.h>
 #define bswap_32 bswap32
+#elif defined(__FreeBSD__)
+#include <sys/endian.h>
+#define bswap_32 bswap32
+#else
+#include <byteswap.h>
 #endif
 
 #define LE32_IN( x )       bswap_32( *(GLuint *)(x) )