coan: fix build with gcc15

This commit is contained in:
Harinn
2026-04-10 20:21:22 +07:00
parent 075a836cc0
commit 144b84be05
2 changed files with 13 additions and 0 deletions
@@ -0,0 +1,11 @@
diff --git a/src/path.h b/src/path.h
--- a/src/path.h
+++ b/src/path.h
@@ -232,7 +232,7 @@
*/
path operator+(std::string const & str) const {
path p(*this);
- p.append(str);
+ p.push_back(str);
return p;
}
+2
View File
@@ -18,6 +18,8 @@ stdenv.mkDerivation (finalAttrs: {
patches = [
# fix compile error in configure.ac
./fix-big-endian-config-check.diff
# Fix GCC 15 build: path::operator+ calls a nonexistent append() member.
./fix-path-operator-plus.diff
];
nativeBuildInputs = [