Skip to content

Commit 0bc1b2f

Browse files
committed
a fix for the solaris fix itself ;)
1 parent 5043dff commit 0bc1b2f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

redis.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@
5858
#include <sys/resource.h>
5959
#include <limits.h>
6060
#include <math.h>
61-
#if defined(__sun) && defined(__GNUC__)
61+
62+
#if defined(__sun)
6263
#include "solarisfixes.h"
6364
#endif
6465

solarisfixes.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/* Solaris specific fixes */
22

3+
#if defined(__GNUC__)
34
#undef isnan
45
#define isnan(x) \
56
__extension__({ __typeof (x) __x_a = (x); \
@@ -14,3 +15,4 @@
1415
#define isinf(x) \
1516
__extension__ ({ __typeof (x) __x_i = (x); \
1617
__builtin_expect(!isnan(__x_i) && !isfinite(__x_i), 0); })
18+
#endif /* __GNUC__ */

0 commit comments

Comments
 (0)