Fix stacksize max for Mac OS X 81/13381/2
Vincent COUVERT [Wed, 18 Dec 2013 16:24:27 +0000 (17:24 +0100)]
Change-Id: Ife08b2c35d9695ba61d212a9df5682a98ebcf2ba

scilab/modules/core/sci_gateway/c/sci_stacksize.c

index 2890dac..abc9461 100644 (file)
@@ -14,9 +14,6 @@
 #include <Windows.h>
 #else
 #include <unistd.h>
-#ifndef __APPLE__
-#include <sys/sysinfo.h>
-#endif
 #endif
 #include <stdio.h>
 
@@ -252,12 +249,6 @@ static int setStacksizeMax(char *fname)
     /* GetLargestFreeMemoryRegion() returns a superior size to real value */
     unsigned long maxmemfree = (GetLargestFreeMemoryRegion()) / sizeof(double);
 
-    long long freePhysicalMem = 0;
-
-#ifndef _MSC_VER
-    freePhysicalMem = (long long)((get_avphys_pages() * get_phys_pages()) / sizeof(double));
-#endif
-
     /* We have already max */
     if (maxmemfree <= backupSize)
     {