Browse code

md5.h: fixed types for Sun Solaris

Jason Penton authored on 07/01/2013 09:02:06
Showing 1 changed files
... ...
@@ -22,6 +22,13 @@
22 22
 /* Probably not the proper place, but will do for Debian: */
23 23
 #include <sys/types.h>
24 24
 
25
+/* fix types for Sun Solaris */
26
+#if defined(__SVR4) || defined(__sun)
27
+    typedef uint8_t u_int8_t;
28
+    typedef uint32_t u_int32_t;
29
+    typedef uint64_t u_int64_t;
30
+#endif
31
+
25 32
 typedef struct MD5Context {
26 33
 	u_int32_t state[4];			/* state */
27 34
 	u_int64_t count;			/* number of bits, mod 2^64 */