Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
6fe2b523
Commit
6fe2b523
authored
May 04, 2020
by
antirez
Browse files
Fix NetBSD build by fixing redis_set_thread_title() support.
See #7188.
parent
68b5eed4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/config.h
View file @
6fe2b523
...
...
@@ -230,9 +230,12 @@ void setproctitle(const char *fmt, ...);
#ifdef __linux__
#define redis_set_thread_title(name) pthread_setname_np(pthread_self(), name)
#else
#if (defined
__NetBSD__ || defined
__FreeBSD__ || defined __OpenBSD__)
#if (defined __FreeBSD__ || defined __OpenBSD__)
#include <pthread_np.h>
#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)
#else
#if (defined __APPLE__ && defined(MAC_OS_X_VERSION_10_7))
int
pthread_setname_np
(
const
char
*
name
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment