diff options
author | Jon Turney <[email protected]> | 2019-08-07 01:48:36 +0100 |
---|---|---|
committer | Jon Turney <[email protected]> | 2019-08-09 12:46:43 +0000 |
commit | 0141b7c6b25cd1cb7b4073c3905839b3e5e07413 (patch) | |
tree | a911e7a252eab5177ba849799029e32de059d588 /src/util/u_thread.h | |
parent | 5e38db0c47ca57c6e904f44d0d0e9ef299d14f3c (diff) |
util: Cygwin has linux-style pthread_setname_np
Fixes: dcf9d91a ("util: Handle differences in pthread_setname_np")
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 c6b35d0814b..26c76d78c05 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 +#if DETECT_OS_LINUX || DETECT_OS_CYGWIN pthread_setname_np(pthread_self(), name); #elif DETECT_OS_FREEBSD || DETECT_OS_OPENBSD pthread_set_name_np(pthread_self(), name); |