diff options
Diffstat (limited to 'src/common/code_environment.cc')
-rw-r--r-- | src/common/code_environment.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/common/code_environment.cc b/src/common/code_environment.cc index 14d55f60c30..21633fc5d41 100644 --- a/src/common/code_environment.cc +++ b/src/common/code_environment.cc @@ -11,6 +11,7 @@ * Foundation. See file COPYING. * */ +#include "include/compat.h" #include "common/code_environment.h" @@ -18,10 +19,6 @@ #include "acconfig.h" -#ifdef HAVE_PTHREAD_GETNAME_NP -#include <pthread.h> -#endif - #include <string.h> code_environment_t g_code_env = CODE_ENVIRONMENT_UTILITY; @@ -57,7 +54,7 @@ int get_process_name(char *buf, int len) } // FIPS zeroization audit 20191115: this memset is not security related. memset(buf, 0, len); - return pthread_getname_np(pthread_self(), buf, len); + return ceph_pthread_getname(buf, len); } #elif defined(HAVE_GETPROGNAME) |