]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common: use ceph_pthread_getname 22681/head
authorWillem Jan Withagen <wjw@digiware.nl>
Sun, 24 Jun 2018 00:40:05 +0000 (02:40 +0200)
committerWillem Jan Withagen <wjw@digiware.nl>
Tue, 26 Jun 2018 07:32:36 +0000 (09:32 +0200)
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/common/assert.cc

index 45d44d12ea1aaf6fc2139fd01b34ded008d4b624..4a9625925f91b0ff680bb2077c6b51c05b0835ee 100644 (file)
@@ -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 {