diff options
author | Giel van Schijndel <me@mortis.eu> | 2012-06-30 20:11:27 +0200 |
---|---|---|
committer | Giel van Schijndel <me@mortis.eu> | 2012-07-17 01:50:35 +0200 |
commit | b277b0f1005f493c9e649e57819c610692d164a2 (patch) | |
tree | 0354ef062f44c1413fae321cb5040bfd06cd8fd0 /src | |
parent | 304ca955082a709a455cf0ba14ae9b995f92925e (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')
-rw-r--r-- | src/util.cpp | 2 |
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__)) |