mirror of
https://github.com/dgibson/dtc.git
synced 2025-10-13 16:27:39 -04:00
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 <david@gibson.dropbear.id.au>
This commit is contained in:
parent
9dfb495f80
commit
8765874963
1 changed files with 6 additions and 1 deletions
7
util.c
7
util.c
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue