Re: [U-Boot] [PATCH] tools: compiler.h: Fix build on FreeBSD

2014-10-11 Thread Tom Rini
On Tue, Oct 07, 2014 at 10:42:27PM +0200, Jeroen Hofstee wrote: Commit 832472 tools: socfpga: Add socfpga preloader signing to mkimage added tools/socfpga.c which relies on htole32, le32toh and friends. While compiler.h includes these protypes for linux from endian.h, it doesn't do so for

[U-Boot] [PATCH] tools: compiler.h: Fix build on FreeBSD

2014-10-07 Thread Jeroen Hofstee
Commit 832472 tools: socfpga: Add socfpga preloader signing to mkimage added tools/socfpga.c which relies on htole32, le32toh and friends. While compiler.h includes these protypes for linux from endian.h, it doesn't do so for FreeBSD. Hence include sys/endian.h for FreeBSD. Cc: Marek Vasut