Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
0bc1b2f6
Commit
0bc1b2f6
authored
Oct 27, 2009
by
antirez
Browse files
a fix for the solaris fix itself ;)
parent
5043dff3
Changes
2
Hide whitespace changes
Inline
Side-by-side
redis.c
View file @
0bc1b2f6
...
...
@@ -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
...
...
solarisfixes.h
View file @
0bc1b2f6
/* 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__ */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment