]> 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)
committerVictor Julien <vjulien@oisf.net>
Tue, 22 Feb 2022 19:05:39 +0000 (20:05 +0100)
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

index 36aecd90346d9602c3320f25829658f82b9b7f73..70b12235cd0ec8c60388ddbb249cdbacef5b54ad 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],