summaryrefslogblamecommitdiffstats
path: root/graphics/libGL/files/patch-src_gallium_drivers_r600_r600-asm.c
blob: 3b580dd81030068107a6970e10b4d6df3d9a8aa4 (plain) (tree)
1
2
3
4
5
6
7
8
9







                                                                                   
                                                     





                                    
--- src/gallium/drivers/r600/r600_asm.c.orig    2013-03-20 00:28:25.000000000 +0100
+++ src/gallium/drivers/r600/r600_asm.c 2013-06-26 23:29:14.000000000 +0200
@@ -27,7 +27,12 @@
 #include "r600d.h"
 
 #include <errno.h>
+#if defined(__linux__)
 #include <byteswap.h>
+#elif defined(__FreeBSD__) || defined(__DragonFly__)
+#include <sys/endian.h>
+#define bswap_32(x)    bswap32((x))
+#endif
 #include "util/u_memory.h"
 #include "pipe/p_shader_tokens.h"