Changeset View
Changeset View
Standalone View
Standalone View
head/graphics/mesa-dri/files/patch-src_mesa_main_compiler.h
--- src/mesa/main/compiler.h.orig 2016-11-10 22:05:17 UTC | --- src/mesa/main/compiler.h.orig 2017-05-10 14:13:57 UTC | ||||
+++ src/mesa/main/compiler.h | +++ src/mesa/main/compiler.h | ||||
@@ -56,6 +56,9 @@ extern "C" { | @@ -51,6 +51,9 @@ | ||||
#if defined(__linux__) | #if defined(__linux__) | ||||
#include <byteswap.h> | #include <byteswap.h> | ||||
#define CPU_TO_LE32( x ) bswap_32( x ) | #define CPU_TO_LE32( x ) bswap_32( x ) | ||||
+#elif defined(__FreeBSD__) | +#elif defined(__FreeBSD__) | ||||
+#include <sys/endian.h> | +#include <sys/endian.h> | ||||
+#define CPU_TO_LE32( x ) bswap32( x ) | +#define CPU_TO_LE32( x ) bswap32( x ) | ||||
#elif defined(__APPLE__) | #elif defined(__APPLE__) | ||||
#include <CoreFoundation/CFByteOrder.h> | #include <CoreFoundation/CFByteOrder.h> | ||||
#define CPU_TO_LE32( x ) CFSwapInt32HostToLittle( x ) | #define CPU_TO_LE32( x ) CFSwapInt32HostToLittle( x ) |