[Enhance][Deps] Fix velocypack compile in GCC11 (#12614)

This commit is contained in:
imay 2022-10-27 11:30:49 -07:00 committed by GitHub
parent 522202865e
commit f7f4ad4fed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 0 deletions

View File

@ -419,5 +419,15 @@ fi
cd -
echo "Finished patching $HYPERSCAN_SOURCE"
# patch vpack
cd $TP_SOURCE_DIR/$VPACK_SOURCE
if [ ! -f $PATCHED_MARK ] && [ $VPACK_SOURCE = "velocypack-XYZ1.0" ]; then
patch -p1 < $TP_PATCH_DIR/velocypack-XYZ1.0.patch
touch $PATCHED_MARK
fi
cd -
echo "Finished patching $VPACK_SOURCE"
cd -

View File

@ -0,0 +1,11 @@
diff -rupN velocypack-XYZ1.0.orig/include/velocypack/Slice.h velocypack-XYZ1.0/include/velocypack/Slice.h
--- velocypack-XYZ1.0.orig/include/velocypack/Slice.h 2022-10-27 18:22:53.050941619 +0000
+++ velocypack-XYZ1.0/include/velocypack/Slice.h 2022-10-27 18:23:53.518866674 +0000
@@ -36,6 +36,7 @@
#include <functional>
#include <tuple>
#include <type_traits>
+#include <limits>
#if __cplusplus >= 201703L
#include <string_view>