From 3068a0d0dc87a57408c53b23e125b6c6de0c181a Mon Sep 17 00:00:00 2001 From: KWSys Upstream Date: Tue, 22 Jan 2019 11:29:02 -0500 Subject: [PATCH] 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 --- SystemInformation.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SystemInformation.cxx b/SystemInformation.cxx index d368fa29f3..6c12355de7 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;