Răsfoiți Sursa

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
KWSys Upstream 6 ani în urmă
părinte
comite
3068a0d0dc
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      SystemInformation.cxx

+ 2 - 1
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;