[Mesa-dev] [PATCH 3/5] compiler: define endian for FreeBSD

Brian Paul brianp at vmware.com
Tue Oct 24 02:27:25 UTC 2017


On 10/23/2017 02:20 PM, Greg V wrote:
> Obtained from: FreeBSD ports
> ---
>   src/mesa/main/compiler.h | 3 +++
>   1 file changed, 3 insertions(+)
>
> diff --git a/src/mesa/main/compiler.h b/src/mesa/main/compiler.h
> index 43a06b4313..8652aac36c 100644
> --- a/src/mesa/main/compiler.h
> +++ b/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 )
>

I think "compiler:" in the subject line could be just "mesa:".

Otherwise, for patches 3,4,5: Reviewed-by: Brian Paul <brianp at vmware.com>

I'll leave 1,2 to others.

-Brian



More information about the mesa-dev mailing list