Skip to content

Commit b0e1d11

Browse files
committedFeb 4, 2025
1 parent b4d3979 commit b0e1d11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/ipc/libmultiprocess/src/mp/util.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include <thread>
2020
#include <unistd.h>
2121

22-
#if __linux__
22+
#ifdef __linux__
2323
#include <syscall.h>
2424
#endif
2525

@@ -59,7 +59,7 @@ std::string ThreadName(const char* exe_name)
5959

6060
// Prefer platform specific thread ids over the standard C++11 ones because
6161
// the former are shorter and are the same as what gdb prints "LWP ...".
62-
#if __linux__
62+
#ifdef __linux__
6363
buffer << syscall(SYS_gettid);
6464
#elif defined(HAVE_PTHREAD_THREADID_NP)
6565
uint64_t tid = 0;

0 commit comments

Comments
 (0)
Please sign in to comment.