libmicrohttpd

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

commit 1b2f15f717504f3be5d48043090bb1fc70933908
parent 6f38d5fd1d39f15caaabb0a8853a79f1c8e9d1bc
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun,  1 Sep 2013 19:36:38 +0000

-setname_np does not exist on FreeBSD

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

diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c @@ -969,8 +969,10 @@ create_thread (pthread_t *thread, ret = pthread_create (thread, pattr, start_routine, arg); #if (__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 12) +#if LINUX (void) pthread_setname_np (*thread, "libmicrohttpd"); #endif +#endif if (0 != daemon->thread_stack_size) pthread_attr_destroy (&attr); return ret;