Skip to content
This repository
Browse code

a fix for the solaris fix itself ;)

  • Loading branch information...
commit 0bc1b2f651aa054cf1b83b3d1379120b98902150 1 parent 5043dff
Salvatore Sanfilippo authored

Showing 2 changed files with 4 additions and 1 deletion. Show diff stats Hide diff stats

  1. +2 1  redis.c
  2. +2 0  solarisfixes.h
3  redis.c
@@ -58,7 +58,8 @@
58 58 #include <sys/resource.h>
59 59 #include <limits.h>
60 60 #include <math.h>
61   -#if defined(__sun) && defined(__GNUC__)
  61 +
  62 +#if defined(__sun)
62 63 #include "solarisfixes.h"
63 64 #endif
64 65
2  solarisfixes.h
... ... @@ -1,5 +1,6 @@
1 1 /* Solaris specific fixes */
2 2
  3 +#if defined(__GNUC__)
3 4 #undef isnan
4 5 #define isnan(x) \
5 6 __extension__({ __typeof (x) __x_a = (x); \
@@ -14,3 +15,4 @@
14 15 #define isinf(x) \
15 16 __extension__ ({ __typeof (x) __x_i = (x); \
16 17 __builtin_expect(!isnan(__x_i) && !isfinite(__x_i), 0); })
  18 +#endif /* __GNUC__ */

0 comments on commit 0bc1b2f

Please sign in to comment.
Something went wrong with that request. Please try again.