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)