aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-09-01 19:36:38 +0000
committerChristian Grothoff <christian@grothoff.org>2013-09-01 19:36:38 +0000
commit1b2f15f717504f3be5d48043090bb1fc70933908 (patch)
tree3650ecd370beb98d9ed47a951c2e06ecc04458be
parent6f38d5fd1d39f15caaabb0a8853a79f1c8e9d1bc (diff)
downloadlibmicrohttpd-1b2f15f717504f3be5d48043090bb1fc70933908.tar.gz
libmicrohttpd-1b2f15f717504f3be5d48043090bb1fc70933908.zip
-setname_np does not exist on FreeBSD
-rw-r--r--src/microhttpd/daemon.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index 197c5af8..5d99fa40 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -969,8 +969,10 @@ create_thread (pthread_t *thread,
969 ret = pthread_create (thread, pattr, 969 ret = pthread_create (thread, pattr,
970 start_routine, arg); 970 start_routine, arg);
971#if (__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 12) 971#if (__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 12)
972#if LINUX
972 (void) pthread_setname_np (*thread, "libmicrohttpd"); 973 (void) pthread_setname_np (*thread, "libmicrohttpd");
973#endif 974#endif
975#endif
974 if (0 != daemon->thread_stack_size) 976 if (0 != daemon->thread_stack_size)
975 pthread_attr_destroy (&attr); 977 pthread_attr_destroy (&attr);
976 return ret; 978 return ret;