aboutsummaryrefslogtreecommitdiff
path: root/src/util.cpp
diff options
context:
space:
mode:
authorGiel van Schijndel <me@mortis.eu>2012-06-30 20:11:27 +0200
committerGiel van Schijndel <me@mortis.eu>2012-07-17 01:50:35 +0200
commitb277b0f1005f493c9e649e57819c610692d164a2 (patch)
tree0354ef062f44c1413fae321cb5040bfd06cd8fd0 /src/util.cpp
parent304ca955082a709a455cf0ba14ae9b995f92925e (diff)
Don't check for __linux__ specifically, check for PR_SET_NAME feature instead
Signed-off-by: Giel van Schijndel <me@mortis.eu>
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 498fb074d0..a4a71a127e 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__))