summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKWSys Upstream <kwrobot@kitware.com>2019-01-22 16:29:02 (GMT)
committerBrad King <brad.king@kitware.com>2019-01-22 16:29:56 (GMT)
commit3068a0d0dc87a57408c53b23e125b6c6de0c181a (patch)
tree3c64d8c546906eab5b1ce7fc8a5fe29af65d440e
parenta4841e12c0e3865a585774b118e7b9840bc1b253 (diff)
downloadCMake-3068a0d0dc87a57408c53b23e125b6c6de0c181a.zip
CMake-3068a0d0dc87a57408c53b23e125b6c6de0c181a.tar.gz
CMake-3068a0d0dc87a57408c53b23e125b6c6de0c181a.tar.bz2
KWSys 2019-01-22 (4fecfe6f)
Code extracted from: https://gitlab.kitware.com/utils/kwsys.git at commit 4fecfe6f29be07ec165bcc87a20666425d928aa6 (master). Upstream Shortlog ----------------- Brad King (1): 7a5e5af8 SystemTools: Revert "Fix FileIsSymlink with Windows data deduplication" Tobias Kloss (1): ef373416 SystemTools: Fix FileIsSymlink with Windows data deduplication Wouter Klouwen (1): 8e9970fb SystemInformation: support BSD platforms for GetProcessId
-rw-r--r--SystemInformation.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/SystemInformation.cxx b/SystemInformation.cxx
index d368fa2..6c12355 100644
--- a/SystemInformation.cxx
+++ b/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;