Change-Id: Ife08b2c35d9695ba61d212a9df5682a98ebcf2ba
#include <Windows.h>
#else
#include <unistd.h>
-#ifndef __APPLE__
-#include <sys/sysinfo.h>
-#endif
#endif
#include <stdio.h>
/* 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)
{