diff options
author | Jett Rink <jettrink@chromium.org> | 2020-11-10 16:48:51 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-11-11 17:00:43 +0000 |
commit | a418c258495274e04778d6d62187bb5ddcec2e7d (patch) | |
tree | 0b873882c7498a8f302f8cf9cd99a7589c99370f | |
parent | 22ee9a346718a9a07955fd81b0d03c4dde5b2ec8 (diff) | |
download | chrome-ec-a418c258495274e04778d6d62187bb5ddcec2e7d.tar.gz |
zephyr/util: reorder header files
When compiling posix-ec, there are issues with strncasecmp. If we
include the correct zephyr headers and hide the EC's version of stdlib,
we can make everything work
BRANCH=none
BUG=b:172512307
TEST=build posix-ec with CL stack
Signed-off-by: Jett Rink <jettrink@chromium.org>
Change-Id: Ia4d412a45e15b91b36b94ca58ecc9cbe41b2b082
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2530150
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
-rw-r--r-- | zephyr/shim/src/util.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/zephyr/shim/src/util.c b/zephyr/shim/src/util.c index 9538a82ac0..b64907e2e1 100644 --- a/zephyr/shim/src/util.c +++ b/zephyr/shim/src/util.c @@ -3,10 +3,13 @@ * found in the LICENSE file. */ -#include <common.h> -#include <stdlib.h> #include <ctype.h> -#include <util.h> +#include <stdlib.h> +#include <strings.h> + +#define HIDE_EC_STDLIB +#include "common.h" +#include "util.h" /* Int and Long are same size, just forward to existing Long implementation */ int strtoi(const char *nptr, char **endptr, int base) |