From: antirez Date: Tue, 18 May 2010 08:05:00 +0000 (+0200) Subject: Solaris fixes X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/9caf1a20436bca57f011175c43003cf4b255420c Solaris fixes --- diff --git a/sha1.c b/sha1.c index 79bdcd5a..7250fc60 100644 --- 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 */ diff --git a/solarisfixes.h b/solarisfixes.h index 8786965a..5be2b647 100644 --- a/solarisfixes.h +++ b/solarisfixes.h @@ -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__ */