diff options
-rw-r--r-- | src/common/util.c | 3 | ||||
-rw-r--r-- | src/common/util.h | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/common/util.c b/src/common/util.c index 1e25e294a2..d22fce57a7 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -68,6 +68,9 @@ const char util_c_id[] = "$Id$"; #ifdef HAVE_TIME_H #include <time.h> #endif +#if defined(HAVE_MALLOC_H) && defined(HAVE_MALLINFO) +#include <malloc.h> +#endif #ifndef O_BINARY #define O_BINARY 0 diff --git a/src/common/util.h b/src/common/util.h index b0db03f149..4837c172db 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -23,9 +23,6 @@ #ifdef HAVE_TIME_H #include <time.h> #endif -#ifdef HAVE_MALLOC_H -#include <malloc.h> -#endif /* Replace assert() with a variant that sends failures to the log before * calling assert() normally. |