Permalink
Browse files

a fix for the solaris fix itself ;)

  • Loading branch information...
1 parent 5043dff commit 0bc1b2f651aa054cf1b83b3d1379120b98902150 @antirez committed Oct 27, 2009
Showing with 4 additions and 1 deletion.
  1. +2 −1 redis.c
  2. +2 −0 solarisfixes.h
View
@@ -58,7 +58,8 @@
#include <sys/resource.h>
#include <limits.h>
#include <math.h>
-#if defined(__sun) && defined(__GNUC__)
+
+#if defined(__sun)
#include "solarisfixes.h"
#endif
View
@@ -1,5 +1,6 @@
/* Solaris specific fixes */
+#if defined(__GNUC__)
#undef isnan
#define isnan(x) \
__extension__({ __typeof (x) __x_a = (x); \
@@ -14,3 +15,4 @@
#define isinf(x) \
__extension__ ({ __typeof (x) __x_i = (x); \
__builtin_expect(!isnan(__x_i) && !isfinite(__x_i), 0); })
+#endif /* __GNUC__ */

0 comments on commit 0bc1b2f

Please sign in to comment.