It turns out it isn't needed, and OS/X doesn't have it.
Reported-by: Chris Peterson <cpeterso@cpeterso.com>
Signed-off-by: NeilBrown <neilb@suse.de>
/* Includes and defines for ccan files */
-#include <endian.h>
#ifdef LITTLE_ENDIAN
#define HAVE_LITTLE_ENDIAN 1
#define HAVE_BIG_ENDIAN 0
-#else
+#elif defined(BIG_ENDIAN)
#define HAVE_LITTLE_ENDIAN 0
#define HAVE_BIG_ENDIAN 1
+#else
+ #error Unknown endian
#endif