From 8a14bb4b104738170e2dbfe81c7209db874aa98c Mon Sep 17 00:00:00 2001 From: John Sully Date: Thu, 21 May 2020 23:24:34 -0400 Subject: [PATCH] build failure on macos Former-commit-id: c10aa3b8b0811da9931745695c5de06fdfa99fe3 --- src/config.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/config.h b/src/config.h index 659b0aff3..431491953 100644 --- a/src/config.h +++ b/src/config.h @@ -241,6 +241,9 @@ void setproctitle(const char *fmt, ...); #define redis_set_thread_title(name) pthread_set_name_np(pthread_self(), name) #else #if (defined __APPLE__ && defined(MAC_OS_X_VERSION_10_7)) +#ifdef __cplusplus +extern "C" +#endif int pthread_setname_np(const char *name); #include #define redis_set_thread_title(name) pthread_setname_np(name)