Date: Sun, 7 Jun 2020 10:40:04 +0000 (UTC) From: Antoine Brodin <antoine@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r538151 - head/sysutils/lttng-ust/files Message-ID: <202006071040.057Ae4ZQ085286@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: antoine Date: Sun Jun 7 10:40:03 2020 New Revision: 538151 URL: https://svnweb.freebsd.org/changeset/ports/538151 Log: Fix build with upcoming pthread_setname_np (Differential Revision D25117) Added: head/sysutils/lttng-ust/files/patch-liblttng-ust_compat.h (contents, props changed) Added: head/sysutils/lttng-ust/files/patch-liblttng-ust_compat.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/lttng-ust/files/patch-liblttng-ust_compat.h Sun Jun 7 10:40:03 2020 (r538151) @@ -0,0 +1,20 @@ +--- liblttng-ust/compat.h.orig 2016-11-29 01:46:24 UTC ++++ liblttng-ust/compat.h +@@ -73,9 +73,15 @@ void lttng_ust_getprocname(char *name) + } + + /* +- * If pthread_set_name_np is available. ++ * If pthread_setname_np or pthread_set_name_np is available. + */ +-#ifdef HAVE_PTHREAD_SET_NAME_NP ++#ifdef HAVE_PTHREAD_SETNAME_NP ++static inline ++int lttng_pthread_setname_np(pthread_t thread, const char *name) ++{ ++ return pthread_setname_np(thread, name); ++} ++#elif defined(HAVE_PTHREAD_SET_NAME_NP) + static inline + int lttng_pthread_setname_np(pthread_t thread, const char *name) + {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202006071040.057Ae4ZQ085286>