Petr, I would really appreciate a patch for trafficserver with the
prototype to fix this bug, until your fix for eglibc is available in
unstable.
Workaround for trafficserver:
--- lib/ts/ink_thread.h
+++ lib/ts/ink_thread.h
@@ -310,6 +310,12 @@
// This define is from Linux's <sys/prctl.h> and is most likely very
// Linux specific... Feel free to add support for other platforms
// that has a feature to give a thread specific name / tag.
+
+#if defined(__FreeBSD_kernel__) && defined(HAVE_PTHREAD_SETNAME_NP_1)
+#undef HAVE_PTHREAD_SETNAME_NP_1
+extern "C" int pthread_setname_np (pthread_t __target_thread, __const char
*__name);
+#endif
+
static inline void
ink_set_thread_name(const char* name ATS_UNUSED)
{
Sorry for this problem.
Petr
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]