From deb49862cd6734ccb15c1cc91e430c8ee01292aa Mon Sep 17 00:00:00 2001 From: Jeff Lucovsky Date: Tue, 15 Feb 2022 10:50:33 -0500 Subject: [PATCH] config/debug: Debug probe for getattr_np This commit adds a probe for a non-portable function to be used in diagnostic debug display of a thread's stack size. --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index 36aecd903..70b12235c 100644 --- a/configure.ac +++ b/configure.ac @@ -739,6 +739,11 @@ AC_CHECK_FUNCS([pthread_spin_unlock]) + AS_IF([test "x$enable_debug" = "xyes"], [ + # Debug only function used for diagnostic display + AC_CHECK_FUNCS([pthread_getattr_np]) + ]) + # libjansson AC_ARG_WITH(libjansson_includes, [ --with-libjansson-includes=DIR libjansson include directory], -- 2.47.3