tools: compiler.h: add missing time.h
authorJeroen Hofstee <jeroen@myspectrum.nl>
Wed, 25 Jun 2014 21:02:21 +0000 (23:02 +0200)
committerTom Rini <trini@ti.com>
Tue, 22 Jul 2014 11:44:25 +0000 (07:44 -0400)
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@ti.com>
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
include/compiler.h

index 0734ed494274558a0656925220d7e4861da7231e..9afc11be1942d6b9e2c4ba19ed059fd288447685 100644 (file)
@@ -48,6 +48,7 @@
 # include <machine/endian.h>
 typedef unsigned long ulong;
 #endif
+#include <time.h>
 
 typedef uint8_t __u8;
 typedef uint16_t __u16;