Skip to content

Open Source alternative to Algolia + Pinecone and an Easier-to-Use alternative to ElasticSearch ⚡ 🔍 ✨ Fast, typo tolerant, in-memory fuzzy Search Engine for building delightful search experiences

Fix conflicting declaration of C function in brpc.

Kishore Nallan10ba8f72bf26
diff --git a/bazel/brpc/brpc.patch b/bazel/brpc/brpc.patch
index 0bd8874f..f686f03f 100644
--- a/bazel/brpc/brpc.patch
+++ b/bazel/brpc/brpc.patch
@@ -16,6 +16,18 @@
PLOG(WARNING) << "Fail to proc_pid_rusage";
return false;
+--- src/butil/third_party/dynamic_annotations/dynamic_annotations.h
++++ src/butil/third_party/dynamic_annotations/dynamic_annotations.h
+@@ -498,7 +498,7 @@
+ const char *file, int line, const volatile void *mem,
+ const char *description) DYNAMIC_ANNOTATIONS_ATTRIBUTE_WEAK;
+ void DYNAMIC_ANNOTATIONS_NAME(AnnotateBenignRaceSized)(
+- const char *file, int line, const volatile void *mem, long size,
++ const char *file, int line, const volatile void *mem, size_t size,
+ const char *description) DYNAMIC_ANNOTATIONS_ATTRIBUTE_WEAK;
+ void DYNAMIC_ANNOTATIONS_NAME(AnnotateMutexIsUsedAsCondVar)(
+ const char *file, int line,
+
--- BUILD.bazel
+++ BUILD.bazel
@@ -48,7 +48,7 @@ LINKOPTS = [