build failure on macos
Former-commit-id: c10aa3b8b0811da9931745695c5de06fdfa99fe3
This commit is contained in:
parent
27eb239f1a
commit
8a14bb4b10
@ -241,6 +241,9 @@ void setproctitle(const char *fmt, ...);
|
|||||||
#define redis_set_thread_title(name) pthread_set_name_np(pthread_self(), name)
|
#define redis_set_thread_title(name) pthread_set_name_np(pthread_self(), name)
|
||||||
#else
|
#else
|
||||||
#if (defined __APPLE__ && defined(MAC_OS_X_VERSION_10_7))
|
#if (defined __APPLE__ && defined(MAC_OS_X_VERSION_10_7))
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C"
|
||||||
|
#endif
|
||||||
int pthread_setname_np(const char *name);
|
int pthread_setname_np(const char *name);
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#define redis_set_thread_title(name) pthread_setname_np(name)
|
#define redis_set_thread_title(name) pthread_setname_np(name)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user