summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllen Webb <allenwebb@google.com>2018-09-11 15:57:59 -0700
committerManoj Gupta <manojgupta@chromium.org>2018-09-12 23:19:11 +0000
commita10e8b901a45153a2367ac4dcb34b5d7117e2a3a (patch)
treed439068b27f13d58f078cda6e311d9558f2a319a
parent170a177c7a840a5074e073c80d872b967f37c161 (diff)
downloadchrome-ec-a10e8b901a45153a2367ac4dcb34b5d7117e2a3a.tar.gz
cr50_fuzz: Add missing include and define.
A change in a parent commit broke the build for this commit. Adding an include for cstring and #define HIDE_EC_STDLIB resolves the header conflict. BUG=chromium:883080 TEST=make -j buildfuzztests Change-Id: Icf584a6050519c7a3b8f7defb7685c9c64f7a145 Signed-off-by: Allen Webb <allenwebb@google.com> Reviewed-on: https://chromium-review.googlesource.com/1220390 Reviewed-by: Manoj Gupta <manojgupta@chromium.org>
-rw-r--r--fuzz/cr50_fuzz.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/fuzz/cr50_fuzz.cc b/fuzz/cr50_fuzz.cc
index dc4220afb8..1c7e815f1b 100644
--- a/fuzz/cr50_fuzz.cc
+++ b/fuzz/cr50_fuzz.cc
@@ -9,8 +9,10 @@
#include <cstdint>
#include <cstdlib>
+#include <cstring>
extern "C" {
+#define HIDE_EC_STDLIB
#include "fuzz_config.h"
#include "nvmem.h"
#include "nvmem_vars.h"