From 17f348961a01c8bb331965544087bbe6a6bf8e85 Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Wed, 31 Dec 2014 22:35:17 -0600 Subject: [PATCH] be more direct about obtaining BSD integer types --- include/sys/types.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/include/sys/types.h b/include/sys/types.h index 89310f0..2dfac13 100644 --- a/include/sys/types.h +++ b/include/sys/types.h @@ -8,7 +8,6 @@ #ifndef LIBCRYPTOCOMPAT_SYS_TYPES_H #define LIBCRYPTOCOMPAT_SYS_TYPES_H -#include #include #ifdef __MINGW32__ @@ -23,4 +22,12 @@ # define __bounded__(x, y, z) #endif +/* + * Define BSD-style unsigned bits types for systems that do not have them. + */ +typedef uint8_t u_int8_t; +typedef uint16_t u_int16_t; +typedef uint32_t u_int32_t; +typedef uint64_t u_int64_t; + #endif