From 8765874963852b2733777e69686251205238ad3d Mon Sep 17 00:00:00 2001 From: David Gibson Date: Wed, 3 Mar 2010 16:38:01 +1100 Subject: [PATCH] dtc: Correct headers in util.c Since util.c is used in programs other than full dtc, it shouldn't include the full dtc.h, just util.h which has prototypes directly relevant to it. This patch makes the change, and also adds includes of the necessary system headers which were previously included indirectly by dtc.h. Signed-off-by: David Gibson --- util.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/util.c b/util.c index c1d3ca4..d7ac27d 100644 --- a/util.c +++ b/util.c @@ -17,7 +17,12 @@ * USA */ -#include "dtc.h" +#include +#include +#include +#include + +#include "util.h" char *xstrdup(const char *s) {