summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2016-09-10 21:14:19 -0700
committerAdam Jackson <ajax@redhat.com>2016-09-13 16:55:26 -0400
commitc4799f186b31e579721f5874c897f3f46db6ad0a (patch)
treeb5df363dea0c53b77836a18b0792e26cd96353cf /include
parent75c1d04650f63464263c159d2e95364482be724f (diff)
os: Use pthread_setname_np to set thread names if available
Autoconf logic borrowed from glib Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com> Tested-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
Diffstat (limited to 'include')
-rw-r--r--include/dix-config.h.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/dix-config.h.in b/include/dix-config.h.in
index d49af928f..4f020e5d8 100644
--- a/include/dix-config.h.in
+++ b/include/dix-config.h.in
@@ -143,6 +143,12 @@
/* Define to 1 if you have the `mmap' function. */
#undef HAVE_MMAP
+/* Define to 1 if you have the function pthread_setname_np(const char*) */
+#undef HAVE_PTHREAD_SETNAME_NP_WITHOUT_TID
+
+/* Define to 1 if you have the function pthread_setname_np(pthread_t, const char*) */
+#undef HAVE_PTHREAD_SETNAME_NP_WITH_TID
+
/* Define to 1 if you have the <ndbm.h> header file. */
#undef HAVE_NDBM_H