summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/statedump.c
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2009-12-01 20:28:28 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-12-01 19:48:41 -0800
commit67d6a0a6195a72bce251891fccbd38929d5586dc (patch)
tree7ddf6cdf7803d7e1030187daac44db824bda7d42 /libglusterfs/src/statedump.c
parent0c4b5814e7402658493f1e16ef7fa9a8fa8b4be5 (diff)
fixes to compile on MacOSX (no fuse client)
These changes are required to make GlusterFS compile on MacOSX (10.5). Currently glusterfs server component alone will work over Mac, and it has to be built with following options to ./configure. "bash$ ./configure --disable-fuse-client --disable-fusermount " Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 361 (GlusterFS 3.0 should work on Mac OS/X) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=361
Diffstat (limited to 'libglusterfs/src/statedump.c')
-rw-r--r--libglusterfs/src/statedump.c4
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;