Hi.

at the moment I have no idea on if ceph would work on a mac or not, but
it compiles with the following minor tweaks. I'm sure there is a
autoconf way of doing  as well... but I don't know it.

regards
Ian


$ git diff
diff --git a/src/include/buffer.h b/src/include/buffer.h
index caa0896..f394372 100644
--- a/src/include/buffer.h
+++ b/src/include/buffer.h
@@ -17,7 +17,11 @@

#define _XOPEN_SOURCE 600
#include <stdlib.h>
+#if defined(__APPLE__)
+#include <malloc/malloc.h>
+#else
#include <malloc.h>
+#endif
#include <stdint.h>
#include <assert.h>
#include <string.h>
diff --git a/src/include/page.h b/src/include/page.h
index baadcf1..183a1bd 100644
--- a/src/include/page.h
+++ b/src/include/page.h
@@ -6,9 +6,14 @@ extern unsigned _page_size;
extern unsigned long _page_mask;
extern unsigned _page_shift;

+#if defined(__APPLE__)
+/* These are defined in mach/XXXX/vm_param.h  */
+
+#else
#define PAGE_SIZE _page_size
#define PAGE_MASK _page_mask
#define PAGE_SHIFT _page_shift
+#endif

/*
#define PAGE_SIZE 4096



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ceph-devel mailing list
Ceph-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ceph-devel

Reply via email to