mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-06 18:26:22 +03:00
0023250: Missing include in OSD_MemInfo.cxx
Function getpid() declared in "unistd.h" header on POSIX-compliant systems. Fix compilation error with gcc 4.7 on Linux.
This commit is contained in:
parent
44b8f2d659
commit
8fa02385b0
@ -28,6 +28,8 @@
|
|||||||
#elif (defined(__APPLE__))
|
#elif (defined(__APPLE__))
|
||||||
#include <mach/task.h>
|
#include <mach/task.h>
|
||||||
#include <mach/mach.h>
|
#include <mach/mach.h>
|
||||||
|
#else
|
||||||
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
@ -80,7 +82,7 @@ void OSD_MemInfo::Update()
|
|||||||
myCounters[MemSwapUsage] = aProcMemCnts.PagefileUsage;
|
myCounters[MemSwapUsage] = aProcMemCnts.PagefileUsage;
|
||||||
myCounters[MemSwapUsagePeak] = aProcMemCnts.PeakPagefileUsage;
|
myCounters[MemSwapUsagePeak] = aProcMemCnts.PeakPagefileUsage;
|
||||||
}
|
}
|
||||||
|
|
||||||
#elif (defined(__linux__) || defined(__linux))
|
#elif (defined(__linux__) || defined(__linux))
|
||||||
// use procfs on Linux
|
// use procfs on Linux
|
||||||
char aBuff[4096];
|
char aBuff[4096];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user