]> 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)
committerJeff Lucovsky <jeff@lucovsky.org>
Fri, 11 Mar 2022 14:03:33 +0000 (09:03 -0500)
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 d56d3a550bc0044a36a5b8e7d2de0c7ff6c25d6f..61c07fe9bfce6704dafb0a9d1b285670572e6746 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],