It seems that some OS/X users don't need any endian file, and
others need machine/endian.h
Odd, but we can satisfy both, so do so.
Patch-from: "P. Martin" <mrsmiley98@lycos.com>
Signed-off-by: NeilBrown <neilb@suse.de>
/* Includes and defines for ccan files */
#if !defined(LITTLE_ENDIAN) && !defined(BIG_ENDIAN)
- #include <endian.h>
+ #ifdef __APPLE__
+ #include <machine/endian.h>
+ #else
+ #include <endian.h>
+ #endif
#endif
#ifdef LITTLE_ENDIAN
#define HAVE_LITTLE_ENDIAN 1