Skip to content

Commit 50cdedd

Browse files
committed
Check for __sun macro in solarisfixes.h, not in includers.
1 parent 77608ae commit 50cdedd

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/redis.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,7 @@
3232

3333
#include "fmacros.h"
3434
#include "config.h"
35-
36-
#if defined(__sun)
3735
#include "solarisfixes.h"
38-
#endif
3936

4037
#include <stdio.h>
4138
#include <stdlib.h>

src/sha1.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ A million repetitions of "a"
2424
#include <stdio.h>
2525
#include <string.h>
2626
#include <sys/types.h> /* for u_int*_t */
27-
#if defined(__sun)
2827
#include "solarisfixes.h"
29-
#endif
3028
#include "sha1.h"
3129
#include "config.h"
3230

src/solarisfixes.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
* POSSIBILITY OF SUCH DAMAGE.
2929
*/
3030

31+
#if defined(__sun)
32+
3133
#if defined(__GNUC__)
3234
#include <math.h>
3335
#undef isnan
@@ -48,3 +50,5 @@
4850
#define u_int uint
4951
#define u_int32_t uint32_t
5052
#endif /* __GNUC__ */
53+
54+
#endif /* __sun */

0 commit comments

Comments
 (0)