From: Jeroen Hofstee Date: Tue, 7 Oct 2014 20:42:27 +0000 (+0200) Subject: tools: compiler.h: Fix build on FreeBSD X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ed8271d11c5c7a31eb49f787fa25eece6b82bb9e;p=project%2Fbcm63xx%2Fu-boot.git 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 for FreeBSD. Cc: Marek Vasut CC: Tom Rini Signed-off-by: Jeroen Hofstee --- diff --git a/include/compiler.h b/include/compiler.h index 14519163a3..21036022d7 100644 --- a/include/compiler.h +++ b/include/compiler.h @@ -48,6 +48,10 @@ # include typedef unsigned long ulong; #endif +#ifdef __FreeBSD__ +# include /* htole32 and friends */ +#endif + #include typedef uint8_t __u8;