[BusyBox-cvs] busybox/coreutils sha1sum.c,1.1,1.2

Glenn McGrath bug1 at busybox.net
Mon Feb 17 12:18:19 UTC 2003


Update of /var/cvs/busybox/coreutils
In directory winder:/tmp/cvs-serv7833/coreutils

Modified Files:
	sha1sum.c 
Log Message:
Fix for big endian machines


Index: sha1sum.c
===================================================================
RCS file: /var/cvs/busybox/coreutils/sha1sum.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- sha1sum.c	17 Feb 2003 08:23:21 -0000	1.1
+++ sha1sum.c	17 Feb 2003 12:18:16 -0000	1.2
@@ -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) \




More information about the busybox-cvs mailing list