]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
config/debug: Debug probe for getattr_np
authorJeff Lucovsky <jeff@lucovsky.org>
Tue, 15 Feb 2022 15:50:33 +0000 (10:50 -0500)
committerShivani Bhardwaj <shivanib134@gmail.com>
Tue, 8 Mar 2022 15:04:15 +0000 (20:34 +0530)
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

index fa62a5fac8689e9d3bfa99381855b82f4780b183..18fc82db653631eab80a631d726c61649ae24d52 100644 (file)
 
     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],