package/google-breakpad: fix missing include error
src/common/module.cc: In member function ‘bool google_breakpad::Module::AddFunction(Function*)’: src/common/module.cc:194:52: error: ‘find_if’ is not a member of ‘std’; did you mean ‘find’? 194 | FunctionSet::iterator existing_function = std::find_if( | ^~~~~~~ | find Makefile:8309: recipe for target 'src/common/tools_mac_dump_syms_dump_syms_mac-module.o' failed This error is seen on gcc-14. https://chromium-review.googlesource.com/c/breakpad/breakpad/+/5137658 https://git.openembedded.org/meta-openembedded/tree/meta-oe/recipes-devtools/breakpad/breakpad/0001-Fixed-missing-include-for-std-find_if.patch Signed-off-by: Kadambini Nema <kadambini.nema@gmail.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
parent
5c86121d88
commit
59e2a8ed5a
@ -0,0 +1,26 @@
|
||||
From 898a997855168c0e6a689072fefba89246271a5d Mon Sep 17 00:00:00 2001
|
||||
From: Nathan Moinvaziri <nathan@nathanm.com>
|
||||
Date: Tue, 19 Dec 2023 14:35:05 -0800
|
||||
Subject: [PATCH] Fixed missing include for std::find_if.
|
||||
|
||||
Throws an error when compiling on Windows.
|
||||
|
||||
Change-Id: Ieb34c00cf199aaa1b45a440086c48b8ed363b3c7
|
||||
Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/5137658
|
||||
Reviewed-by: Ivan Penkov <ivanpe@chromium.org>
|
||||
Upstream: https://github.com/google/breakpad/commit/898a997855168c0e6a689072fefba89246271a5d
|
||||
Signed-off-by: Kadambini Nema <kadambini.nema@gmail.com>
|
||||
---
|
||||
|
||||
diff --git a/src/common/module.cc b/src/common/module.cc
|
||||
index 0eb5aad..b6f5da7 100644
|
||||
--- a/src/common/module.cc
|
||||
+++ b/src/common/module.cc
|
||||
@@ -42,6 +42,7 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
+#include <algorithm>
|
||||
#include <functional>
|
||||
#include <iostream>
|
||||
#include <memory>
|
Loading…
Reference in New Issue
Block a user