[U-Boot] [PATCH] tools: compiler.h: add missing time.h
Jeroen Hofstee
jeroen at myspectrum.nl
Wed Jun 25 23:02:21 CEST 2014
genimg_print_time uses time_t, but time.h is never included.
Linux gets away with this since types.h includes time.h.
Explicitly include the header file so building on e.g. FreeBSD
also works.
cc: Tom Rini <trini at ti.com>
Signed-off-by: Jeroen Hofstee <jeroen at myspectrum.nl>
---
include/compiler.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/compiler.h b/include/compiler.h
index 0734ed4..9afc11b 100644
--- a/include/compiler.h
+++ b/include/compiler.h
@@ -48,6 +48,7 @@
# include <machine/endian.h>
typedef unsigned long ulong;
#endif
+#include <time.h>
typedef uint8_t __u8;
typedef uint16_t __u16;
--
1.8.3.2
More information about the U-Boot
mailing list