]> git.saurik.com Git - redis.git/commitdiff
more endianess detection fix for SHA1
authorantirez <antirez@gmail.com>
Fri, 14 May 2010 20:57:39 +0000 (22:57 +0200)
committerantirez <antirez@gmail.com>
Fri, 14 May 2010 20:57:39 +0000 (22:57 +0200)
sha1.c

diff --git a/sha1.c b/sha1.c
index 988ede7f053438543c4d97172a4e60ea35ec490b..79bdcd5a7dcc3443900c81e6b9f5a083d94b99cc 100644 (file)
--- a/sha1.c
+++ b/sha1.c
@@ -30,7 +30,7 @@ A million repetitions of "a"
 #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) */