mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 13:33:32 -04:00
sci-physics/openmodelica: Add missing include statement to fix compilation issue with GCC 14
Signed-off-by: Ivan Lloro <ivan.lloro.boada@gmail.com>
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
add <algorithm> to define std::unique and std::find
|
||||
Fixes compilation error with GCC 14
|
||||
|
||||
See https://github.com/OpenModelica/OMSimulator/pull/1295
|
||||
--- a/OMSimulator/src/OMSimulatorLib/Model.cpp
|
||||
+++ b/OMSimulator/src/OMSimulatorLib/Model.cpp
|
||||
@@ -43,6 +43,7 @@
|
||||
|
||||
#include "minizip.h"
|
||||
#include <thread>
|
||||
+#include <algorithm>
|
||||
|
||||
oms::Model::Model(const oms::ComRef& cref, const std::string& tempDir)
|
||||
: cref(cref), tempDir(tempDir), resultFilename(std::string(cref) + "_res.mat")
|
||||
@@ -85,6 +85,7 @@ DEPEND="${RDEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/"${P}"-raw_strings.patch
|
||||
"${FILESDIR}"/"${P}"-include_algorithm.patch
|
||||
)
|
||||
|
||||
src_unpack() {
|
||||
|
||||
Reference in New Issue
Block a user