summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-01-22 16:29:56 (GMT)
committerBrad King <brad.king@kitware.com>2019-01-22 16:29:56 (GMT)
commit405d9cb4b5cf9d849facda5dfa6ec02e57f33be7 (patch)
tree2f086501fffe2a97eb6d063dbbb4f81a2058d3b7
parentbcc9ea2b3d9cd3b882dbb2a23502b0392cb21d1b (diff)
parent3068a0d0dc87a57408c53b23e125b6c6de0c181a (diff)
downloadCMake-405d9cb4b5cf9d849facda5dfa6ec02e57f33be7.zip
CMake-405d9cb4b5cf9d849facda5dfa6ec02e57f33be7.tar.gz
CMake-405d9cb4b5cf9d849facda5dfa6ec02e57f33be7.tar.bz2
Merge branch 'upstream-KWSys' into update-kwsys
* upstream-KWSys: KWSys 2019-01-22 (4fecfe6f)
-rw-r--r--Source/kwsys/SystemInformation.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/kwsys/SystemInformation.cxx b/Source/kwsys/SystemInformation.cxx
index d368fa2..6c12355 100644
--- a/Source/kwsys/SystemInformation.cxx
+++ b/Source/kwsys/SystemInformation.cxx
@@ -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;