aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManoj Gupta <manojgupta@google.com>2022-04-27 10:07:23 -0700
committerMike Leach <mike.leach@linaro.org>2022-05-05 12:02:08 +0100
commit86ca337d8cf413190470c8a6a5f2e03ffa0068e2 (patch)
tree063b39374fa16d53ec13957ec60830c84620eb33
parentfcc76f3925d98e49e77fdc86d75a7715e420d2b8 (diff)
downloadOpenCSD-86ca337d8cf413190470c8a6a5f2e03ffa0068e2.tar.gz
tests: Include <algorithm> in snapshot_parser_util.h
std::lexicographical_compare usage in snapshot_parser_util.h requires <algorithm>. This fixes a build breakage when using ToT libc++ which no longer transitively include <algorithm>. Signed-off-by: Manoj Gupta <manojgupta@google.com>
-rw-r--r--decoder/tests/snapshot_parser_lib/include/snapshot_parser_util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/decoder/tests/snapshot_parser_lib/include/snapshot_parser_util.h b/decoder/tests/snapshot_parser_lib/include/snapshot_parser_util.h
index 815afe9..d4fd6cd 100644
--- a/decoder/tests/snapshot_parser_lib/include/snapshot_parser_util.h
+++ b/decoder/tests/snapshot_parser_lib/include/snapshot_parser_util.h
@@ -35,6 +35,7 @@
#ifndef ARM_SNAPSHOT_PARSER_UTIL_H_INCLUDED
#define ARM_SNAPSHOT_PARSER_UTIL_H_INCLUDED
+#include <algorithm>
#include <string>
#include <sstream>
#include <iomanip>