From 59d9293378c5a3987c9fb5ca9e5557ce2f41dd21 Mon Sep 17 00:00:00 2001 From: Jordan R Abrahams-Whitehead Date: Wed, 6 Apr 2022 21:48:53 +0000 Subject: Include algorithm for suffix_array_index.cc This is required due to the use of std::mismatch. This file may have compiled before due to a transitive inclusion of the header. However, recent changes to LLVM ToT will prevent these transitive inclusions from happening. We identified this problem due to emerging bsdiff with `llvm-next` in ChromeOS. Bug: 228085014 Test: setup_board --board=amd64-generic \ && repo download -b change-3564896 \ chromiumos/overlays/chromiumos-overlay 3564896 \ && sudo USE='llvm-next -thinlto' emerge \ sys-devel/llvm sys-libs/libcxx \ && sudo emerge bsdiff Change-Id: Ie3af357377c9cf4b51f0d7e1d9758a74605c7b46 --- suffix_array_index.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/suffix_array_index.cc b/suffix_array_index.cc index b02655c..710249c 100644 --- a/suffix_array_index.cc +++ b/suffix_array_index.cc @@ -4,6 +4,7 @@ #include "bsdiff/suffix_array_index.h" +#include #include #include -- cgit v1.2.3