dtc: Correct headers in util.c
David Gibson
david at gibson.dropbear.id.au
Wed Mar 3 16:38:01 EST 2010
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 <david at gibson.dropbear.id.au>
Index: dtc/util.c
===================================================================
--- dtc.orig/util.c 2010-03-03 16:34:25.029011952 +1100
+++ dtc/util.c 2010-03-03 16:35:18.655986458 +1100
@@ -17,7 +17,12 @@
* USA
*/
-#include "dtc.h"
+#include <stdio.h>
+#include <stdlib.h>
+#include <stdarg.h>
+#include <string.h>
+
+#include "util.h"
char *xstrdup(const char *s)
{
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
More information about the devicetree-discuss
mailing list