浏览代码

md5.h: fixed types for Sun Solaris

Jason Penton 12 年之前
父节点
当前提交
ff1c7f3756
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      md5.h

+ 7 - 0
md5.h

@@ -22,6 +22,13 @@
 /* Probably not the proper place, but will do for Debian: */
 #include <sys/types.h>
 
+/* fix types for Sun Solaris */
+#if defined(__SVR4) || defined(__sun)
+    typedef uint8_t u_int8_t;
+    typedef uint32_t u_int32_t;
+    typedef uint64_t u_int64_t;
+#endif
+
 typedef struct MD5Context {
 	u_int32_t state[4];			/* state */
 	u_int64_t count;			/* number of bits, mod 2^64 */