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
792a9415
Commit
792a9415
authored
Jan 09, 2015
by
antirez
Browse files
Check for __sun macro in solarisfixes.h, not in includers.
parent
f3fd58eb
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/redis.h
View file @
792a9415
...
...
@@ -32,10 +32,7 @@
#include "fmacros.h"
#include "config.h"
#if defined(__sun)
#include "solarisfixes.h"
#endif
#include <stdio.h>
#include <stdlib.h>
...
...
src/sha1.c
View file @
792a9415
...
...
@@ -24,9 +24,7 @@ A million repetitions of "a"
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
/* for u_int*_t */
#if defined(__sun)
#include "solarisfixes.h"
#endif
#include "sha1.h"
#include "config.h"
...
...
src/solarisfixes.h
View file @
792a9415
...
...
@@ -28,6 +28,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#if defined(__sun)
#if defined(__GNUC__)
#include <math.h>
#undef isnan
...
...
@@ -48,3 +50,5 @@
#define u_int uint
#define u_int32_t uint32_t
#endif
/* __GNUC__ */
#endif
/* __sun */
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