OS X build break fix

Former-commit-id: 105fd03ef8cd810e67c01e4d5a3ea7816e215a99
This commit is contained in:
John Sully 2021-05-25 18:32:31 +00:00
parent f1c3a9ffc8
commit 9992f14de8

View File

@ -256,7 +256,7 @@ void setproctitle(const char *fmt, ...);
#define redis_set_thread_title(name) rename_thread(find_thread(0), name)
#else
#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>
#define redis_set_thread_title(name) pthread_setname_np(name)
#else