From 9dd39c3e1305ed2fde91d85194fc543700ced361 Mon Sep 17 00:00:00 2001 From: Nabil Ghodbane Date: Mon, 8 Jan 2024 13:41:12 +0100 Subject: [PATCH] bos #40481: [CEA] KERNEL: compilation fails if glibc >=2.32 + Windows export --- src/Basics/Monitoring.cxx | 6 ++++-- src/Basics/libSALOMELog.cxx | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) 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; } -- 2.39.2