Unverified Commit f16b52cb authored by David CARLIER's avatar David CARLIER Committed by GitHub
Browse files

redis_set_thread_title support for Haiku. (#8060)

parent 0963edbc
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment