Fix for big endian machines
authorGlenn L McGrath <bug1@ihug.co.nz>
Mon, 17 Feb 2003 12:18:16 +0000 (12:18 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Mon, 17 Feb 2003 12:18:16 +0000 (12:18 -0000)
coreutils/sha1sum.c

index d79a88ec1c2707053bcc98308e1c3997cade3219..03009f76f5c55b789860655595ecada5d5844c26 100644 (file)
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-
+#include <endian.h>
 #include "busybox.h"
 
-#ifdef WORDS_BIGENDIAN
+#if __BYTE_ORDER == __BIG_ENDIAN
 # define SWAP(n) (n)
 #else
 # define SWAP(n) \