From: Jeff Lucovsky Date: Tue, 15 Feb 2022 15:50:33 +0000 (-0500) Subject: config/debug: Debug probe for getattr_np X-Git-Tag: suricata-6.0.5~74 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9923083039ff03b6b65bb2f80a4911cca6ba4d06;p=thirdparty%2Fsuricata.git 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) --- diff --git a/configure.ac b/configure.ac index fa62a5fac8..18fc82db65 100644 --- a/configure.ac +++ b/configure.ac @@ -896,6 +896,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],