vcpkg/ports/breakpad/fix-const-char.patch
liamwhite 146441473c
[breakpad] update to 2023.01.27 (#34273)
* [breakpad] update to 2023.01.27

* Fix the CMakeFindDependencyMacro part.

* Attach zlib to where the glob happens, and remove duplicate cpp files from dump_syms.

* Zlib is an unconditional dependency on Linux

---------

Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2023-12-12 01:05:14 -08:00

15 lines
444 B
Diff

diff --git a/src/processor/disassembler_objdump.cc b/src/processor/disassembler_objdump.cc
index dfe10d58..26be029c 100644
--- a/src/processor/disassembler_objdump.cc
+++ b/src/processor/disassembler_objdump.cc
@@ -85,7 +85,7 @@ ScopedTmpFile::~ScopedTmpFile() {
}
bool ScopedTmpFile::Create() {
- fd_ = mkstemp(path_.data());
+ fd_ = mkstemp(const_cast<char*>(path_.data()));
if (fd_ < 0) {
unlink(path_.c_str());
fd_ = 0;