summaryrefslogtreecommitdiffstats
path: root/graphics/libGL/files/patch-src_mesa_main_compiler.h
blob: 50cf3a8454f6695a4c921b9a897459c6b296e69a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
--- src/mesa/main/compiler.h.orig   2013-04-06 04:01:09.000000000 +0200
+++ src/mesa/main/compiler.h    2013-06-26 23:26:02.000000000 +0200
@@ -171,6 +171,9 @@
 #if defined(__linux__)
 #include <byteswap.h>
 #define CPU_TO_LE32( x )   bswap_32( x )
+#elif defined(__FreeBSD__)
+#include <sys/endian.h>
+#define CPU_TO_LE32( x )   bswap32( x )
 #elif defined(__APPLE__)
 #include <CoreFoundation/CFByteOrder.h>
 #define CPU_TO_LE32( x )   CFSwapInt32HostToLittle( x )