We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4d3979 commit b0e1d11Copy full SHA for b0e1d11
src/ipc/libmultiprocess/src/mp/util.cpp
@@ -19,7 +19,7 @@
19
#include <thread>
20
#include <unistd.h>
21
22
-#if __linux__
+#ifdef __linux__
23
#include <syscall.h>
24
#endif
25
@@ -59,7 +59,7 @@ std::string ThreadName(const char* exe_name)
59
60
// Prefer platform specific thread ids over the standard C++11 ones because
61
// the former are shorter and are the same as what gdb prints "LWP ...".
62
63
buffer << syscall(SYS_gettid);
64
#elif defined(HAVE_PTHREAD_THREADID_NP)
65
uint64_t tid = 0;
0 commit comments