X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/4d16bb253c8807e45abcd776fcf6521c525a3f2b..4589a823fd3da534ee3e80870ad2de86a23c3361:/sha1.c?ds=sidebyside diff --git a/sha1.c b/sha1.c index 988ede7f..2c50433e 100644 --- a/sha1.c +++ b/sha1.c @@ -24,13 +24,16 @@ A million repetitions of "a" #include <stdio.h> #include <string.h> #include <sys/types.h> /* for u_int*_t */ +#if defined(__sun) +#include "solarisfixes.h" +#endif #include "sha1.h" #ifndef BYTE_ORDER #if (BSD >= 199103) # include <machine/endian.h> #else -#ifdef linux +#if defined(linux) || defined(__linux__) # include <endian.h> #else #define LITTLE_ENDIAN 1234 /* least-significant byte first (vax, pc) */ @@ -49,7 +52,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 */