From: jfa Date: Wed, 12 Oct 2022 07:03:06 +0000 (+0300) Subject: [bos #32505] [CEA] Additional patches for Fedora 36. SPNS-29988-SHAPER-V9_9_0.patch X-Git-Tag: V9_10_0a1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3445e4e318ba80c21d8c3b3c6cfb1fd861fa03ef;p=modules%2Fshaper.git [bos #32505] [CEA] Additional patches for Fedora 36. SPNS-29988-SHAPER-V9_9_0.patch --- diff --git a/src/FeaturesPlugin/FeaturesPlugin_Measurement.cpp b/src/FeaturesPlugin/FeaturesPlugin_Measurement.cpp index 9f3f9f003..3d0fe58e6 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Measurement.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_Measurement.cpp @@ -49,6 +49,7 @@ #include #include +#include FeaturesPlugin_Measurement::FeaturesPlugin_Measurement() : mySceenScale(1) { diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_ShapeTools.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_ShapeTools.cpp index f95671f3e..d6baade6e 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_ShapeTools.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_ShapeTools.cpp @@ -101,6 +101,7 @@ #include #include +#include //================================================================================================== static GProp_GProps props(const TopoDS_Shape& theShape) diff --git a/src/ModelHighAPI/ModelHighAPI_Tools.cpp b/src/ModelHighAPI/ModelHighAPI_Tools.cpp index 65f536b38..87f24f815 100644 --- a/src/ModelHighAPI/ModelHighAPI_Tools.cpp +++ b/src/ModelHighAPI/ModelHighAPI_Tools.cpp @@ -559,7 +559,7 @@ static bool checkDump(SessionPtr theSession, // execute the dumped PyGILState_STATE gstate = PyGILState_Ensure(); /* acquire python thread */ static char aReadMode[] = "r"; - FILE* PyFileObject = _Py_fopen(theFilename, aReadMode); + FILE* PyFileObject = fopen(theFilename, aReadMode); PyRun_SimpleFileEx(PyFileObject, theFilename, 1); PyGILState_Release(gstate); /* release python thread */