summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShawn Nematbakhsh <shawnn@chromium.org>2017-07-18 08:48:35 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-07-18 14:26:16 -0700
commit6a23fc7244025b2c079f583282759195bdeb13ad (patch)
treeaccf2ab9b39e3b76fbde39bd616e25a28c1a381f
parentdc4c34d13702c2b759646ab481282688e0fb6e16 (diff)
downloadchrome-ec-6a23fc7244025b2c079f583282759195bdeb13ad.tar.gz
ec_commands: Fix more portability issues
BUG=chromium:741711 BRANCH=None TEST=`make buildall -j`, also verify kevin kernel builds with new copy of ec_commands.h. Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org> Change-Id: Ia7fab98d61ecac727a0007d6f59ab4c9047de049 Reviewed-on: https://chromium-review.googlesource.com/576231 Commit-Ready: Shawn N <shawnn@chromium.org> Tested-by: Shawn N <shawnn@chromium.org> Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
-rw-r--r--include/ec_commands.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h
index 084191c9ca..ea2f9a6213 100644
--- a/include/ec_commands.h
+++ b/include/ec_commands.h
@@ -8,7 +8,7 @@
#ifndef __CROS_EC_EC_COMMANDS_H
#define __CROS_EC_EC_COMMANDS_H
-#ifndef __ACPI__
+#if !defined(__ACPI__) && !defined(__KERNEL__)
#include <stdint.h>
#endif