diff options
Diffstat (limited to 'libglusterfs/src/statedump.c')
-rw-r--r-- | libglusterfs/src/statedump.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libglusterfs/src/statedump.c b/libglusterfs/src/statedump.c index 51933a69607..7f1e3e24196 100644 --- a/libglusterfs/src/statedump.c +++ b/libglusterfs/src/statedump.c @@ -18,13 +18,15 @@ */ #include <stdarg.h> -#include <malloc.h> #include "glusterfs.h" #include "logging.h" #include "iobuf.h" #include "statedump.h" #include "stack.h" +#ifdef HAVE_MALLOC_H +#include <malloc.h> +#endif /* MALLOC_H */ static pthread_mutex_t gf_proc_dump_mutex; static int gf_dump_fd = -1; |