mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
tools: compiler.h: Fix build on FreeBSD
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 <marex@denx.de> CC: Tom Rini <trini@ti.com> Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
This commit is contained in:
parent
4a74298c54
commit
ed8271d11c
1 changed files with 4 additions and 0 deletions
|
@ -48,6 +48,10 @@
|
||||||
# include <machine/endian.h>
|
# include <machine/endian.h>
|
||||||
typedef unsigned long ulong;
|
typedef unsigned long ulong;
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef __FreeBSD__
|
||||||
|
# include <sys/endian.h> /* htole32 and friends */
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
typedef uint8_t __u8;
|
typedef uint8_t __u8;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue