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 <stdlib.h>
+#ifdef DARWIN
+
+#ifndef MAP_ANON
+#define MAP_ANON 0x1000
+#endif
+#ifndef O_DIRECTORY
+#define O_DIRECTORY 0x100000
+void   *valloc(size_t);
+#endif
+
+
+
+#else
+
 #include <malloc.h>
+#endif
 #include <stdint.h>
 #include <assert.h>
 #include <string.h>

> Did you try building without malloc.h?  You may not actually need it at 
> all..
>
>   

building without malloc.h works.. and also removes the need to mess with 
page.h

I've actually stumbled into 3 other things.. it seems that they are only 
defined if the #define _POSIX_C_SOURCE is set.

also os/FileStore.cc is broken as things like BTRFS_IOC_USERTRANS_SEEK 
aren't defined in DARWIN,
and it looks like most of the code in there relies on that kind of thing.

regards
Ian

> 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

Reply via email to