From 91ef78b877e200500aacada62eef2bc9618b4ed0 Mon Sep 17 00:00:00 2001 From: Louis Gombert Date: Mon, 19 Aug 2024 07:58:58 +0000 Subject: [PATCH] Remove dependance to sysinfo --- src/SMDS/SMDS_MemoryLimit.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SMDS/SMDS_MemoryLimit.cxx b/src/SMDS/SMDS_MemoryLimit.cxx index 3ffc5ae3c..adb58fb13 100644 --- a/src/SMDS/SMDS_MemoryLimit.cxx +++ b/src/SMDS/SMDS_MemoryLimit.cxx @@ -25,7 +25,7 @@ // This is not done inside a function of SALOME because allocated memory is not always // returned to the system. (PAL16631) // -#if !defined WIN32 && !defined __APPLE__ +#if !defined WIN32 && !defined __APPLE__ && !defined __EMSCRIPTEN__ #include #endif @@ -34,7 +34,7 @@ int main () { // To better understand what is going on here, consult bug [SALOME platform 0019911] -#if !defined WIN32 && !defined __APPLE__ +#if !defined WIN32 && !defined __APPLE__ && !defined __EMSCRIPTEN__ struct sysinfo si; int err = sysinfo( &si ); if ( err )