summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorAndrei Ziureaev <andrei.ziureaev@arm.com>2020-07-21 16:58:57 +0100
committerDavid Gibson <david@gibson.dropbear.id.au>2020-07-22 16:41:28 +1000
commit3d522abc7571e1851ce71fcf0c3452ef287b1bab (patch)
treed0510d44d215c8f28548a8e5c5e352948a22274e /util.h
parent808cdaaf524f6beb95e0ea87fc42711dbddef21a (diff)
downloaddevice-tree-compiler-3d522abc7571e1851ce71fcf0c3452ef287b1bab.tar.gz
dtc: Include stdlib.h in util.h
If used on its own, util.h needs stdlib.h for exit(), malloc() and realloc(). Signed-off-by: Andrei Ziureaev <andrei.ziureaev@arm.com> Message-Id: <20200721155900.9147-2-andrei.ziureaev@arm.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'util.h')
-rw-r--r--util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/util.h b/util.h
index 5a4172d..a771b46 100644
--- a/util.h
+++ b/util.h
@@ -2,6 +2,7 @@
#ifndef UTIL_H
#define UTIL_H
+#include <stdlib.h>
#include <stdarg.h>
#include <stdbool.h>
#include <getopt.h>