djveremix / redis

Automatically exported from code.google.com/p/redis
0 stars 0 forks source link

sha1.c / sha1.h compile problems on solaris (was bug #244 that was closed before it was properly fixed) #246

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. see bug #244 for details

Fix:

the endianess stuff was fixed, but on master there are still compile issues
around
the u_int*.

Here is the diff to make it work

diff --git a/sha1.c b/sha1.c
index 7250fc6..2c50433 100644
--- a/sha1.c
+++ b/sha1.c
@@ -24,6 +24,9 @@ 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"

 #ifndef BYTE_ORDER

Original issue reported on code.google.com by anko.com on 21 May 2010 at 10:14

GoogleCodeExporter commented 9 years ago
are you sure RC1 does not fix that? We added the above line before releasing.

Original comment by anti...@gmail.com on 21 May 2010 at 10:19

GoogleCodeExporter commented 9 years ago
sorry didn't check, works fine.

Original comment by anko.com on 22 May 2010 at 1:09

GoogleCodeExporter commented 9 years ago
Closing.

Original comment by pcnoordh...@gmail.com on 22 May 2010 at 11:18