From 7f3a3c38fbe347ee50a67c99d64d497bc8085f83 Mon Sep 17 00:00:00 2001 From: Sjors Provoost Date: Tue, 4 Feb 2025 10:40:56 +0100 Subject: [PATCH] fixup! chaincodelabs/libmultiprocess#149 --- src/ipc/libmultiprocess/src/mp/util.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ipc/libmultiprocess/src/mp/util.cpp b/src/ipc/libmultiprocess/src/mp/util.cpp index 7126df9a2604c..f96598ee10b9a 100644 --- a/src/ipc/libmultiprocess/src/mp/util.cpp +++ b/src/ipc/libmultiprocess/src/mp/util.cpp @@ -19,7 +19,7 @@ #include #include -#if __linux__ +#ifdef __linux__ #include #endif @@ -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;