OS X build break fix
Former-commit-id: 105fd03ef8cd810e67c01e4d5a3ea7816e215a99
This commit is contained in:
parent
f1c3a9ffc8
commit
9992f14de8
@ -256,7 +256,7 @@ void setproctitle(const char *fmt, ...);
|
|||||||
#define redis_set_thread_title(name) rename_thread(find_thread(0), name)
|
#define redis_set_thread_title(name) rename_thread(find_thread(0), name)
|
||||||
#else
|
#else
|
||||||
#if (defined __APPLE__ && defined(MAC_OS_X_VERSION_10_7))
|
#if (defined __APPLE__ && defined(MAC_OS_X_VERSION_10_7))
|
||||||
int pthread_setname_np(const char *name);
|
extern "C" 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)
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user