From: Nabil Ghodbane Date: Mon, 8 Jan 2024 12:41:12 +0000 (+0100) Subject: bos #40481: [CEA] KERNEL: compilation fails if glibc >=2.32 + Windows export X-Git-Tag: emc2p_1.6.0-rc1~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fbos%2F40481;p=modules%2Fkernel.git bos #40481: [CEA] KERNEL: compilation fails if glibc >=2.32 + Windows export --- diff --git a/src/Basics/Monitoring.cxx b/src/Basics/Monitoring.cxx index 0fa97dda7..690490c04 100644 --- a/src/Basics/Monitoring.cxx +++ b/src/Basics/Monitoring.cxx @@ -38,7 +38,8 @@ #ifndef WIN32 #include -#include +#include +#include #include #include #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 diff --git a/src/Basics/libSALOMELog.cxx b/src/Basics/libSALOMELog.cxx index 6c0cd55a8..a662bfef4 100644 --- a/src/Basics/libSALOMELog.cxx +++ b/src/Basics/libSALOMELog.cxx @@ -146,7 +146,7 @@ namespace SALOME return verbosityLevel; } - void BASICS_EXPORT SetVerbosityLevel(VerbosityLevelType level) + void SetVerbosityLevel(VerbosityLevelType level) { verbosityLevel = level; }