diff options
author | Alan Coopersmith <[email protected]> | 2019-10-07 18:10:43 -0700 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2019-10-16 13:45:57 +0100 |
commit | 7040795a69a400b32ca17d78c8142976c66a1a97 (patch) | |
tree | e376ad3b2f81446bc9b194aafca53e39ca2d9b58 /src/util/u_thread.h | |
parent | b3028a9fb8110fd37f60e9d66dad3cde6e7b062b (diff) |
util: Solaris has linux-style pthread_setname_np
Fixes: dcf9d91a ("util: Handle differences in pthread_setname_np")
Signed-off-by: Alan Coopersmith <[email protected]>
Acked-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/util/u_thread.h')
-rw-r--r-- | src/util/u_thread.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/u_thread.h b/src/util/u_thread.h index 26c76d78c05..6fc923c10e6 100644 --- a/src/util/u_thread.h +++ b/src/util/u_thread.h @@ -69,7 +69,7 @@ static inline thrd_t u_thread_create(int (*routine)(void *), void *param) static inline void u_thread_setname( const char *name ) { #if defined(HAVE_PTHREAD) -#if DETECT_OS_LINUX || DETECT_OS_CYGWIN +#if DETECT_OS_LINUX || DETECT_OS_CYGWIN || DETECT_OS_SOLARIS pthread_setname_np(pthread_self(), name); #elif DETECT_OS_FREEBSD || DETECT_OS_OPENBSD pthread_set_name_np(pthread_self(), name); |