Salome HOME
Patch for MacOS (from SALOME forum)
[modules/smesh.git] / src / SMDS / SMDS_MemoryLimit.cxx
index c254b50ba6234008ba8ab3cd04f71a5728380c57..3086a8f7b887cd3966e3702cfc2168dce071da57 100644 (file)
@@ -25,7 +25,7 @@
 // This is not done inside a function of SALOME because allocated memory is not always
 // returned to the system. (PAL16631)
 //
-#ifndef WIN32
+#if !defined WIN32 && !defined __APPLE__
 #include <sys/sysinfo.h>
 #endif
 
@@ -36,7 +36,7 @@
 int main (int argc, char ** argv)
 {
   // To better understand what is going on here, consult bug [SALOME platform 0019911]
-#ifndef WIN32
+#if !defined WIN32 && !defined __APPLE__
   struct sysinfo si;
   int err = sysinfo( &si );
   if ( err )