]> git.saurik.com Git - redis.git/commitdiff
Solaris fixes
authorantirez <antirez@gmail.com>
Tue, 18 May 2010 08:05:00 +0000 (10:05 +0200)
committerantirez <antirez@gmail.com>
Tue, 18 May 2010 08:05:00 +0000 (10:05 +0200)
sha1.c
solarisfixes.h

diff --git a/sha1.c b/sha1.c
index 79bdcd5a7dcc3443900c81e6b9f5a083d94b99cc..7250fc6023179827b51c5ce96fd8bc55fa4032bd 100644 (file)
--- a/sha1.c
+++ b/sha1.c
@@ -49,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 */
index 8786965ae30561471502c3ed435d3f3c09e0660e..5be2b647cdc7a0f267436461072fa5d1d0ae1814 100644 (file)
@@ -15,4 +15,6 @@
 #define isinf(x) \
      __extension__ ({ __typeof (x) __x_i = (x); \
      __builtin_expect(!isnan(__x_i) && !isfinite(__x_i), 0); })
+
+#define u_int uint
 #endif /* __GNUC__ */