libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 7b1a97858136d6b7c4a136ba2b8c6da2b9c73fd7
parent 86503923e80da9f221421c65ff4821c73802a305
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Thu, 11 Aug 2016 15:42:30 +0000

mhd_threads: improve compatibility with pthread_setname_np(3) on QNX

Diffstat:
Msrc/microhttpd/mhd_threads.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/microhttpd/mhd_threads.c b/src/microhttpd/mhd_threads.c @@ -84,12 +84,16 @@ static int MHD_set_thread_name_(const MHD_thread_ID_ thread_id, const char *thre } +#ifndef __QNXNTO__ /** * Set current thread name * @param n name to set * @return non-zero on success, zero otherwise */ #define MHD_set_cur_thread_name_(n) MHD_set_thread_name_(pthread_self(),(n)) +#else /* __QNXNTO__ */ +#define MHD_set_cur_thread_name_(n) MHD_set_thread_name_(0,(n)) +#endif /* __QNXNTO__ */ #elif defined(HAVE_PTHREAD_SETNAME_NP_DARWIN) /**