--- sha1.h.orig 2008-01-03 18:59:46.000000000 -0800 +++ sha1.h 2008-01-03 19:00:23.000000000 -0800 @@ -37,6 +37,12 @@ # endif #endif +/* see if we're on big endian */ +#include <sys/types.h> +#if BYTE_ORDER == BIG_ENDIAN +# define WORDS_BIGENDIAN 1 +#endif /* BYTE_ORDER == BIG_ENDIAN */ + #define SHA1_HASH_SIZE 20 #define SHA1_DIGEST_STRING_LENGTH 40