summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Bettis <jbettis@google.com>2023-03-17 14:20:15 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-03-20 22:15:13 +0000
commitfa43416506c6f06a59ab2ccd5f81b7c5b9c7d16e (patch)
tree1e66bdc61a0f712814a87e61d69e4bd535edac9e
parentfff5dcdd4043f6f5d00cfb1862adcbdb34ccb343 (diff)
downloadchrome-ec-fa43416506c6f06a59ab2ccd5f81b7c5b9c7d16e.tar.gz
ec: Add missing #includes
There were several headers broken by sorting includes, because they didn't include what they use. Add missing #includes to fix build. BRANCH=None BUG=None TEST=cq Change-Id: I1b7c6d8fc62ace8cb2cbb12df83c0edf81c7dfde Signed-off-by: Jeremy Bettis <jbettis@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4350990 Reviewed-by: caveh jalali <caveh@chromium.org> Reviewed-by: Tom Hughes <tomhughes@chromium.org> Tested-by: Jeremy Bettis <jbettis@chromium.org> Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
-rw-r--r--include/timer.h2
-rw-r--r--util/misc_util.h3
-rw-r--r--util/uut/cmd.h1
-rw-r--r--util/uut/com_port.h1
4 files changed, 7 insertions, 0 deletions
diff --git a/include/timer.h b/include/timer.h
index a68ce959b2..a70d3a41f5 100644
--- a/include/timer.h
+++ b/include/timer.h
@@ -9,6 +9,8 @@
#define __CROS_EC_TIMER_H
#ifndef CONFIG_ZEPHYR
+#include <time.h>
+
#include <sys/types.h>
#else
/* Data type for POSIX style clock() implementation */
diff --git a/util/misc_util.h b/util/misc_util.h
index 6b65a8c925..80286f2a88 100644
--- a/util/misc_util.h
+++ b/util/misc_util.h
@@ -6,6 +6,9 @@
#ifndef __UTIL_MISC_UTIL_H
#define __UTIL_MISC_UTIL_H
+#include <stddef.h>
+#include <stdint.h>
+
#define GENERIC_MAX(x, y) ((x) > (y) ? (x) : (y))
#define GENERIC_MIN(x, y) ((x) < (y) ? (x) : (y))
#ifndef MAX
diff --git a/util/uut/cmd.h b/util/uut/cmd.h
index cf8457000b..1ec6b07aef 100644
--- a/util/uut/cmd.h
+++ b/util/uut/cmd.h
@@ -8,6 +8,7 @@
#define __UTIL_UUT_CMD_H
#include <stdbool.h>
+#include <stdint.h>
/*---------------------------------------------------------------------------
* Constant definitions
diff --git a/util/uut/com_port.h b/util/uut/com_port.h
index 0a5d843e0f..76ff9e9e16 100644
--- a/util/uut/com_port.h
+++ b/util/uut/com_port.h
@@ -10,6 +10,7 @@
#define __UTIL_UUT_COM_PORT_H
#include <stdbool.h>
+#include <stdint.h>
#include <termios.h>