X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/8ba400493449f8757627713043ae6e5a8f04ce6d..cbae1d34f6f188921639a746dc308130bbf2aa04:/sha1.c diff --git a/sha1.c b/sha1.c index a4f54c9e..7250fc60 100644 --- a/sha1.c +++ b/sha1.c @@ -21,8 +21,6 @@ A million repetitions of "a" #define SHA1HANDSOFF -#include - #include #include #include /* for u_int*_t */ @@ -32,7 +30,7 @@ A million repetitions of "a" #if (BSD >= 199103) # include #else -#ifdef linux +#if defined(linux) || defined(__linux__) # include #else #define LITTLE_ENDIAN 1234 /* least-significant byte first (vax, pc) */ @@ -51,7 +49,7 @@ A million repetitions of "a" defined(apollo) || defined(__convex__) || defined(_CRAY) || \ defined(__hppa) || defined(__hp9000) || \ defined(__hp9000s300) || defined(__hp9000s700) || \ - defined (BIT_ZERO_ON_LEFT) || defined(m68k) + defined (BIT_ZERO_ON_LEFT) || defined(m68k) || defined(__sparc) #define BYTE_ORDER BIG_ENDIAN #endif #endif /* linux */