Function getpid() declared in "unistd.h" header on POSIX-compliant systems.
Fix compilation error with gcc 4.7 on Linux.
#elif (defined(__APPLE__))
#include <mach/task.h>
#include <mach/mach.h>
+#else
+ #include <unistd.h>
#endif
#include <string>
myCounters[MemSwapUsage] = aProcMemCnts.PagefileUsage;
myCounters[MemSwapUsagePeak] = aProcMemCnts.PeakPagefileUsage;
}
-
+
#elif (defined(__linux__) || defined(__linux))
// use procfs on Linux
char aBuff[4096];