From: antirez Date: Fri, 14 May 2010 20:57:39 +0000 (+0200) Subject: more endianess detection fix for SHA1 X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/3863d8ea81373689ff9e53b1243d254e360c568a more endianess detection fix for SHA1 --- diff --git a/sha1.c b/sha1.c index 988ede7f..79bdcd5a 100644 --- a/sha1.c +++ b/sha1.c @@ -30,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) */