google-code-export / s3ql

Automatically exported from code.google.com/p/s3ql
0 stars 0 forks source link

Doesn't build under OS x due to missing endian.h #441

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
endian.h is being included on line 36 of deltadump.pyx.

building produces the following:

src/s3ql/deltadump.c:306:10: fatal error: 'endian.h' file not found
#include "endian.h"
         ^
1 error generated.

The functions htole64 and le64toh don't appear to be in the MacOSX10.8.sdk at 
all.

OS X needs the following defined:

#include <libkern/OSByteOrder.h>
#define htole64(x) OSSwapHostToLittleInt64(x)
#define be64toh(x) OSSwapBigToHostInt64(x)

See 
https://gist.github.com/yinyin/2027912/raw/06a06632d44db6400a7b006090fcb2f53eca8
0ee/endian.h for a full endian.h compatibility header for OS x.

Original issue reported on code.google.com by john@nachtimwald.com on 29 Nov 2013 at 2:36

GoogleCodeExporter commented 9 years ago
Thanks for the report and patch! Will be fixed in the next release.

Original comment by Nikolaus@rath.org on 29 Nov 2013 at 3:02

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 39352e8e4cb4.

Original comment by Nikolaus@rath.org on 29 Nov 2013 at 6:48