Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Sjors committed Feb 4, 2025
1 parent f45876e commit 7f3a3c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ipc/libmultiprocess/src/mp/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <thread>
#include <unistd.h>

#if __linux__
#ifdef __linux__
#include <syscall.h>
#endif

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

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

0 comments on commit 7f3a3c3

Please sign in to comment.