From 80fee0b47b59cf55af441ab9168ef3ef496c2e5b 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. (cherry picked from commit deb49862cd6734ccb15c1cc91e430c8ee01292aa) --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index d56d3a550b..61c07fe9bf 100644 --- a/configure.ac +++ b/configure.ac @@ -831,6 +831,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.2