summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-01-22 11:29:56 -0500
committerBrad King <brad.king@kitware.com>2019-01-22 11:29:56 -0500
commit405d9cb4b5cf9d849facda5dfa6ec02e57f33be7 (patch)
tree2f086501fffe2a97eb6d063dbbb4f81a2058d3b7
parentbcc9ea2b3d9cd3b882dbb2a23502b0392cb21d1b (diff)
parent3068a0d0dc87a57408c53b23e125b6c6de0c181a (diff)
downloadcmake-405d9cb4b5cf9d849facda5dfa6ec02e57f33be7.tar.gz
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 d368fa29f3..6c12355de7 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;