From: Willem Jan Withagen Date: Sun, 24 Jun 2018 00:40:05 +0000 (+0200) Subject: common: use ceph_pthread_getname X-Git-Tag: v14.0.1~860^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F22681%2Fhead;p=ceph.git common: use ceph_pthread_getname Signed-off-by: Willem Jan Withagen --- diff --git a/src/common/assert.cc b/src/common/assert.cc index 45d44d12ea1a..4a9625925f91 100644 --- a/src/common/assert.cc +++ b/src/common/assert.cc @@ -12,6 +12,7 @@ * */ +#include "include/compat.h" #include "common/debug.h" namespace ceph { @@ -40,7 +41,7 @@ namespace ceph { g_assert_line = line; g_assert_func = func; g_assert_thread = (unsigned long long)pthread_self(); - pthread_getname_np(pthread_self(), g_assert_thread_name, + ceph_pthread_getname(pthread_self(), g_assert_thread_name, sizeof(g_assert_thread_name)); ostringstream tss; @@ -88,7 +89,7 @@ namespace ceph { g_assert_line = line; g_assert_func = func; g_assert_thread = (unsigned long long)pthread_self(); - pthread_getname_np(pthread_self(), g_assert_thread_name, + ceph_pthread_getname(pthread_self(), g_assert_thread_name, sizeof(g_assert_thread_name)); class BufAppender {