]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - include/compiler.h
tools: compiler.h: Fix build on FreeBSD
[karo-tx-uboot.git] / include / compiler.h
index 14519163a32bfa13d2df16a22d66735b28b52138..21036022d7a12c68916599c487e68f3ff2ea83d6 100644 (file)
 # include <machine/endian.h>
 typedef unsigned long ulong;
 #endif
+#ifdef __FreeBSD__
+# include <sys/endian.h> /* htole32 and friends */
+#endif
+
 #include <time.h>
 
 typedef uint8_t __u8;