]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
bos #40481: [CEA] KERNEL: compilation fails if glibc >=2.32 + Windows export bos/40481 8/head
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Mon, 8 Jan 2024 12:41:12 +0000 (13:41 +0100)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Mon, 8 Jan 2024 12:41:12 +0000 (13:41 +0100)
src/Basics/Monitoring.cxx
src/Basics/libSALOMELog.cxx

index 0fa97dda7620f21cfb4ec74829667f1f5aeed5cb..690490c04046d23a7ea9b3897c48201b408b36d0 100644 (file)
@@ -38,7 +38,8 @@
 
 #ifndef WIN32
 #include <unistd.h>
-#include <errno.h>
+#include <cerrno>
+#include <cstring>
 #include <sys/types.h>
 #include <signal.h>
 #endif
@@ -60,7 +61,8 @@ static void LaunchMonitoringLinux(const std::string& pyScriptToEvaluate, const s
   else if( pid == 0)
   {
     execlp(PYTHON_EXEC,PYTHON_EXEC,pyScriptToEvaluate.c_str(),nullptr);
-    std::ostringstream oss; oss << "LaunchMonitoring : Error during exe : " << sys_errlist[errno];
+    char buff[1024];
+    std::ostringstream oss; oss << "LaunchMonitoring : Error during exe : " << strerror_r(errno, buff, sizeof(buff));
     throw std::runtime_error( oss.str() );
   }
   else
index 6c0cd55a85f63e512a8b59338901314a594b2d5c..a662bfef4059ee920e9d21091a7f99e68bca148a 100644 (file)
@@ -146,7 +146,7 @@ namespace SALOME
     return verbosityLevel;
   }
 
-  void BASICS_EXPORT SetVerbosityLevel(VerbosityLevelType level)
+  void SetVerbosityLevel(VerbosityLevelType level)
   {
     verbosityLevel = level;
   }