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:
Ivan Lloro
2024-08-04 23:16:35 +02:00
parent 4d3ce715be
commit 0d0da46122
2 changed files with 15 additions and 0 deletions

View File

@@ -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")

View File

@@ -85,6 +85,7 @@ DEPEND="${RDEPEND}"
PATCHES=(
"${FILESDIR}"/"${P}"-raw_strings.patch
"${FILESDIR}"/"${P}"-include_algorithm.patch
)
src_unpack() {