Don't include <endian.h> directly as it's not standard. Instead include it conditionally in bitops.h depending on configure check. Add corresponding defines for Mac OS X. Also check for sys/sysmacros.h and sys/disklabel.h. Don't use malloc.h directly, the standard header for malloc is stdlib.h.
Attachment:
0004-Don-t-include-endian.h-directly-as-it-s-not-standard.patch
Description: Binary data