From 6247061d09e186799e2ee86958106b26289170c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucca=20Jim=C3=A9nez=20K=C3=B6nings?= Date: Thu, 25 Nov 2021 01:06:34 +0100 Subject: [PATCH] Replace gettid() call with POSIX compliant getpid() call in 'Common.cpp' --- src/Common.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Common.cpp b/src/Common.cpp index 8a830cd..d578241 100644 --- a/src/Common.cpp +++ b/src/Common.cpp @@ -117,6 +117,8 @@ void RegisterThread(const std::string& str) { std::string ThreadId; #ifdef WIN32 ThreadId = std::to_string(GetCurrentThreadId()); +#elif __APPLE__ + ThreadId = std::to_string(getpid()); #else ThreadId = std::to_string(gettid()); #endif