summaryrefslogtreecommitdiffhomepage
path: root/coreutils/sha1sum.c
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2003-02-17 12:18:16 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2003-02-17 12:18:16 +0000
commit008c01915b69b006da92b986dd6fea6edb3c3097 (patch)
treea186669b33cb8ab35850471e6dcc288fc9d5c66a /coreutils/sha1sum.c
parentae0f1e7052c1a114666632061d45a9b1f9ca3aa3 (diff)
Fix for big endian machines
Diffstat (limited to 'coreutils/sha1sum.c')
-rw-r--r--coreutils/sha1sum.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/sha1sum.c b/coreutils/sha1sum.c
index d79a88ec1..03009f76f 100644
--- a/coreutils/sha1sum.c
+++ b/coreutils/sha1sum.c
@@ -29,10 +29,10 @@
#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) \