Re: [ceph-devel] making it build on a mac/FreeBSD

2008-08-04 Thread Sage Weil
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,

Re: [ceph-devel] making it build on a mac/FreeBSD

2008-08-04 Thread Ian Holsman
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. lse

Re: [ceph-devel] making it build on a mac/FreeBSD

2008-08-04 Thread Ian Holsman
Sage Weil wrote: diff --git a/src/include/buffer.h b/src/include/buffer.h index caa0896..4435fd2 100644 --- a/src/include/buffer.h +++ b/src/include/buffer.h @@ -17,7 +17,22 @@ #define _XOPEN_SOURCE 600 #include +#ifdef DARWIN + +#ifndef MAP_ANON +#define MAP_ANON 0x1000 +#endif +#ifndef O_DI

Re: [ceph-devel] making it build on a mac/FreeBSD

2008-08-03 Thread Sage Weil
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 de

[ceph-devel] making it build on a mac/FreeBSD

2008-08-03 Thread Ian Holsman
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..f394