diff options
Diffstat (limited to 'thread_pthread.c')
-rw-r--r-- | thread_pthread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/thread_pthread.c b/thread_pthread.c index 0da4aee67f..1688d3d0df 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -1130,7 +1130,7 @@ thread_timer(void *p) if (TT_DEBUG) WRITE_CONST(2, "start timer thread\n"); -#ifdef __linux__ +#if defined(__linux__) && defined(PR_SET_NAME) prctl(PR_SET_NAME, "ruby-timer-thr"); #endif |