From: Justin Hibbits Date: Tue, 30 Jan 2018 04:23:36 +0000 (-0600) Subject: Fix FreeBSD endian checks X-Git-Tag: v2018.03-rc2~36 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f29aa23b54e26d212cc61c07bcbb66ed5d6f9704;p=u-boot Fix FreeBSD endian checks FreeBSD, like OpenBSD, uses BIG_ENDIAN, LITTLE_ENDIAN, and BYTE_ORDER, whereas Linux and compatibles use __-prefixed names. Define the names the same as the OpenBSD block below it. --- diff --git a/include/compiler.h b/include/compiler.h index a43fb6a738..957f4b5d49 100644 --- a/include/compiler.h +++ b/include/compiler.h @@ -50,6 +50,9 @@ typedef unsigned long ulong; #endif #ifdef __FreeBSD__ # include /* htole32 and friends */ +# define __BYTE_ORDER BYTE_ORDER +# define __LITTLE_ENDIAN LITTLE_ENDIAN +# define __BIG_ENDIAN BIG_ENDIAN #elif defined(__OpenBSD__) # include # define __BYTE_ORDER BYTE_ORDER