diff options
author | Antoine Brodin <antoine@FreeBSD.org> | 2020-06-07 10:40:03 +0000 |
---|---|---|
committer | Antoine Brodin <antoine@FreeBSD.org> | 2020-06-07 10:40:03 +0000 |
commit | 5d494ce819549b05e6f41777d7df54d0702be6c0 (patch) | |
tree | cd1c0142d9dc4dd577ec415ec7f812d96e3377ab /sysutils/lttng-ust | |
parent | ea770fa14bf781db88e3f44a5f241b40f3dd1010 (diff) | |
download | ports-5d494ce819549b05e6f41777d7df54d0702be6c0.tar.gz ports-5d494ce819549b05e6f41777d7df54d0702be6c0.zip |
Fix build with upcoming pthread_setname_np (Differential Revision D25117)
Notes
Notes:
svn path=/head/; revision=538151
Diffstat (limited to 'sysutils/lttng-ust')
-rw-r--r-- | sysutils/lttng-ust/files/patch-liblttng-ust_compat.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sysutils/lttng-ust/files/patch-liblttng-ust_compat.h b/sysutils/lttng-ust/files/patch-liblttng-ust_compat.h new file mode 100644 index 000000000000..6ccb5caa2d44 --- /dev/null +++ b/sysutils/lttng-ust/files/patch-liblttng-ust_compat.h @@ -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) + { |