Skip to content

Commit

Permalink
sci-physics/openmodelica: Add missing include statement to fix compil…
Browse files Browse the repository at this point in the history
…ation issue with GCC 14

Signed-off-by: Ivan Lloro <[email protected]>
  • Loading branch information
IvanLloro committed Aug 4, 2024
1 parent 4d3ce71 commit 0d0da46
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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")
1 change: 1 addition & 0 deletions sci-physics/openmodelica/openmodelica-1.23.1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ DEPEND="${RDEPEND}"

PATCHES=(
"${FILESDIR}"/"${P}"-raw_strings.patch
"${FILESDIR}"/"${P}"-include_algorithm.patch
)

src_unpack() {
Expand Down

0 comments on commit 0d0da46

Please sign in to comment.