Ok, applied this to unstable. Thanks! sage
On Tue, 5 Aug 2008, Ian Holsman wrote: > I spoke too soon.. the patch is slightly larger > > it mainly adds the > #include "config.h" > line to various files. > the 'biggies' are > :- the changes around BTRFS.. it stubs a lot of functionality there, as the > include files to build it are not present. > :- the changing of lseek64 to lseek in ebofs. lseek is 64-bit by default on > OS/X. > > I can verify it generates log files now. > > regards > Ian > > > Sage Weil wrote: > > 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. > > > > > > 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