Add compat bits for libtls on Windows

This commit is contained in:
kinichiro
2018-02-25 01:59:39 +09:00
parent 47781e69e2
commit 3681d02253
8 changed files with 110 additions and 0 deletions

View File

@@ -21,6 +21,7 @@
#ifdef __MINGW32__
#include <_bsd_types.h>
typedef uint32_t in_addr_t;
typedef uint32_t uid_t;
#endif
#ifdef _MSC_VER
@@ -29,6 +30,7 @@ typedef unsigned short u_short;
typedef unsigned int u_int;
typedef uint32_t in_addr_t;
typedef uint32_t mode_t;
typedef uint32_t uid_t;
#include <basetsd.h>
typedef SSIZE_T ssize_t;