From ae19fd819d86174be7d8a1fb2a1c6222a51996d6 Mon Sep 17 00:00:00 2001 From: Alessandro Rubini Date: Fri, 29 Mar 2013 10:47:23 +0100 Subject: [PATCH] trivial: headers: include two files more 1- wrc.h now includes syscon.h. This is a prerequisite to a non-inline implementation of usleep (the current inline one is just a random loop, 10x wrong on the spec). Without this we should modify sockitowm where it calls usleep, but I'd better not touch sockitowm. 2- syscon.h includes . This is needed to have useconds_t. I'd better have usleep take unsigned long, but some file already includes sys/types.h, so our prototype must match that one. Signed-off-by: Alessandro Rubini --- include/syscon.h | 1 + include/wrc.h | 1 + 2 files changed, 2 insertions(+) diff --git a/include/syscon.h b/include/syscon.h index 0234406a..8d650fc5 100644 --- a/include/syscon.h +++ b/include/syscon.h @@ -2,6 +2,7 @@ #define __SYSCON_H #include +#include #include "board.h" #undef PACKED /* if we already included a regs file, we'd get a warning */ diff --git a/include/wrc.h b/include/wrc.h index 6809ec81..ad2da181 100644 --- a/include/wrc.h +++ b/include/wrc.h @@ -8,6 +8,7 @@ * Also, this brings in very common and needed headers */ #include +#include #include #define mprintf pp_printf #define vprintf pp_vprintf -- 2.18.1