diff options
author | Jordan R Abrahams-Whitehead <ajordanr@google.com> | 2022-04-06 21:48:53 +0000 |
---|---|---|
committer | Jordan R Abrahams-Whitehead <ajordanr@google.com> | 2022-04-06 21:53:51 +0000 |
commit | 59d9293378c5a3987c9fb5ca9e5557ce2f41dd21 (patch) | |
tree | 4f60cc104be3c4d98888fedc7529c8ca449fe405 | |
parent | baf61cd34a4140ad81d7981ef48369625694d088 (diff) | |
download | bsdiff-59d9293378c5a3987c9fb5ca9e5557ce2f41dd21.tar.gz |
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 <algorithm> 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
-rw-r--r-- | suffix_array_index.cc | 1 |
1 files changed, 1 insertions, 0 deletions
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 <algorithm> #include <limits> #include <vector> |