diff options
author | David CARLIER <devnexen@gmail.com> | 2020-09-23 08:00:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-23 10:00:31 +0300 |
commit | c3edaa79413bdf908abb56f088217c01f347ecff (patch) | |
tree | b581cd093806c71860167bb5479409a96bc578cc /src/config.h | |
parent | 63cd4d4e2044059c44a65e2ce424b9ce1fcdbd39 (diff) | |
download | redis-c3edaa79413bdf908abb56f088217c01f347ecff.tar.gz |
Further NetBSD update and build fixes. (#7831)
mainly backtrace and register dump support.
Diffstat (limited to 'src/config.h')
-rw-r--r-- | src/config.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config.h b/src/config.h index f9ec7e44a..d391508fa 100644 --- a/src/config.h +++ b/src/config.h @@ -64,7 +64,7 @@ /* Test for backtrace() */ #if defined(__APPLE__) || (defined(__linux__) && defined(__GLIBC__)) || \ - defined(__FreeBSD__) || (defined(__OpenBSD__) && defined(USE_BACKTRACE))\ + defined(__FreeBSD__) || ((defined(__OpenBSD__) || defined(__NetBSD__)) && defined(USE_BACKTRACE))\ || defined(__DragonFly__) #define HAVE_BACKTRACE 1 #endif @@ -236,7 +236,7 @@ void setproctitle(const char *fmt, ...); #define redis_set_thread_title(name) pthread_set_name_np(pthread_self(), name) #elif defined __NetBSD__ #include <pthread.h> -#define redis_set_thread_title(name) pthread_setname_np(pthread_self(), name, NULL) +#define redis_set_thread_title(name) pthread_setname_np(pthread_self(), "%s", name) #else #if (defined __APPLE__ && defined(MAC_OS_X_VERSION_10_7)) int pthread_setname_np(const char *name); |