mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-05 18:16:23 +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__))
|
||||
#include <mach/task.h>
|
||||
#include <mach/mach.h>
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include <string>
|
||||
@ -80,7 +82,7 @@ void OSD_MemInfo::Update()
|
||||
myCounters[MemSwapUsage] = aProcMemCnts.PagefileUsage;
|
||||
myCounters[MemSwapUsagePeak] = aProcMemCnts.PeakPagefileUsage;
|
||||
}
|
||||
|
||||
|
||||
#elif (defined(__linux__) || defined(__linux))
|
||||
// use procfs on Linux
|
||||
char aBuff[4096];
|
||||
|
Loading…
x
Reference in New Issue
Block a user