From: Victor Julien Date: Tue, 11 Feb 2025 18:17:27 +0000 (+0100) Subject: includes: explicitly check for and include mm_malloc.h X-Git-Tag: suricata-8.0.0-beta1~455 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f81e8f02c1591a6503aa20233269c2801666c6f2;p=thirdparty%2Fsuricata.git includes: explicitly check for and include mm_malloc.h Helps code analyzers. --- diff --git a/configure.ac b/configure.ac index 83e769e40a..0ebdc9e67a 100644 --- a/configure.ac +++ b/configure.ac @@ -151,6 +151,7 @@ AC_CHECK_HEADERS([mach/mach.h]) AC_CHECK_HEADERS([stdatomic.h]) AC_CHECK_HEADERS([sys/queue.h]) + AC_CHECK_HEADERS([mm_malloc.h]) AC_CHECK_HEADERS([sys/socket.h net/if.h sys/mman.h linux/if_arp.h], [], [], [[#ifdef HAVE_SYS_SOCKET_H diff --git a/src/suricata-common.h b/src/suricata-common.h index e8595c5e88..b018c001e3 100644 --- a/src/suricata-common.h +++ b/src/suricata-common.h @@ -290,6 +290,10 @@ typedef unsigned char u_char; #include #endif +#ifdef HAVE_MM_MALLOC_H +#include +#endif + /* we need this to stringify the defines which are supplied at compiletime see: http://gcc.gnu.org/onlinedocs/gcc-3.4.1/cpp/Stringification.html#Stringification */ #define xstr(s) str(s)