From b277b0f1005f493c9e649e57819c610692d164a2 Mon Sep 17 00:00:00 2001 From: Giel van Schijndel Date: Sat, 30 Jun 2012 20:11:27 +0200 Subject: [PATCH] Don't check for __linux__ specifically, check for PR_SET_NAME feature instead Signed-off-by: Giel van Schijndel --- src/util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.cpp b/src/util.cpp index 498fb074d..a4a71a127 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -1279,7 +1279,7 @@ void runCommand(std::string strCommand) void RenameThread(const char* name) { -#if defined(__linux__) && defined(PR_SET_NAME) +#if defined(PR_SET_NAME) // Only the first 15 characters are used (16 - NUL terminator) ::prctl(PR_SET_NAME, name, 0, 0, 0); #elif 0 && (defined(__FreeBSD__) || defined(__OpenBSD__))