mirror of
https://github.com/beard7n/bsdports.git
synced 2026-04-10 18:41:17 +02:00
13 lines
406 B
C
13 lines
406 B
C
--- src/mesa/main/compiler.h.orig 2017-05-10 14:13:57 UTC
|
|
+++ src/mesa/main/compiler.h
|
|
@@ -51,6 +51,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 )
|