Commit 4fecfe6f authored by Brad King's avatar Brad King Committed by Kitware Robot

Merge topic 'getprocessid-bsd'

8e9970fb SystemInformation: support BSD platforms for GetProcessId
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !119
parents 6e9620ed 8e9970fb
......@@ -3871,7 +3871,8 @@ SystemInformation::LongLong SystemInformationImplementation::GetProcessId()
{
#if defined(_WIN32)
return GetCurrentProcessId();
#elif defined(__linux) || defined(__APPLE__)
#elif defined(__linux) || defined(__APPLE__) || defined(__OpenBSD__) || \
defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
return getpid();
#else
return -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment