On Mon, 4 Aug 2008, Ian Holsman wrote: > 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.
It should mostly work, at least well enough for testing or development. > #define _XOPEN_SOURCE 600 > #include <stdlib.h> > +#if defined(__APPLE__) > +#include <malloc/malloc.h> > +#else > #include <malloc.h> > +#endif Did you try building without malloc.h? You may not actually need it at all.. > --- 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 Here, unconditionally doing #undef PAGE_SIZE #undef PAGE_MASK #undef PAGE_SHIFT before the #define's should work. The _page_size etc values are set using sysconf, the preferred portable way to get those values. If that works for you, I'll commit it! sage > > /* > #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 > > ------------------------------------------------------------------------- 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