summaryrefslogtreecommitdiff
path: root/src/config.h
diff options
context:
space:
mode:
authorDavid CARLIER <devnexen@gmail.com>2020-11-23 14:14:33 +0000
committerGitHub <noreply@github.com>2020-11-23 16:14:33 +0200
commitf16b52cb7deb1c5793243c11498623df75986e73 (patch)
tree059a10ec65e08974d8a0def500ad78e16b23f02d /src/config.h
parent0963edbc65e563262dadf514a13782d639d3cab0 (diff)
downloadredis-f16b52cb7deb1c5793243c11498623df75986e73.tar.gz
redis_set_thread_title support for Haiku. (#8060)
Diffstat (limited to 'src/config.h')
-rw-r--r--src/config.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/config.h b/src/config.h
index 649b51d4a..2cd44f927 100644
--- a/src/config.h
+++ b/src/config.h
@@ -241,6 +241,9 @@ void setproctitle(const char *fmt, ...);
#elif defined __NetBSD__
#include <pthread.h>
#define redis_set_thread_title(name) pthread_setname_np(pthread_self(), "%s", name)
+#elif defined __HAIKU__
+#include <kernel/OS.h>
+#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);