]> git.neil.brown.name Git - wiggle.git/commitdiff
Don't include endian.h
authorNeil Brown <neilb@suse.de>
Thu, 10 May 2012 07:03:15 +0000 (17:03 +1000)
committerNeil Brown <neilb@suse.de>
Thu, 10 May 2012 07:03:15 +0000 (17:03 +1000)
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>
config.h

index 2f2ce3016afc9684a752b9f4482dd0dbacd3d733..2f362546724ce04276959114d8f502405ca0894b 100644 (file)
--- a/config.h
+++ b/config.h
@@ -1,12 +1,13 @@
 
 /* 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