Fix FreeBSD endian checks
PATCH 1/1 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.
--- include/compiler.h | 3 +++ 1 file changed, 3 insertions(+)
include/compiler.h +3 -0
@@ -50,6 +50,9 @@ typedef unsigned long ulong;#endif #ifdef __FreeBSD__# include <sys/endian.h> /* htole32 and friends */ +# define __BYTE_ORDER BYTE_ORDER +# define __LITTLE_ENDIAN LITTLE_ENDIAN +# define __BIG_ENDIAN BIG_ENDIAN#elif defined(__OpenBSD__)# include <endian.h> # define __BYTE_ORDER BYTE_ORDER
Signature · 1 line
2.15.1
Quoted 3 lines · Justin Hibbits
FreeBSD, like OpenBSD, uses
BIG_ENDIAN,LITTLE_ENDIAN, andBYTE_ORDER, whereas Linux and compatibles use __-prefixed names. Define the names the same as the OpenBSD block below it.
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180205/ed0c2e6e/attachment.sig>