From 9d75e5ea975fc6d1b8b6eb333416d76144f7d2ee Mon Sep 17 00:00:00 2001 From: kinichiro Date: Mon, 13 Feb 2017 20:25:49 +0900 Subject: [PATCH] Add definition of ssize_t to tls.h for Windows --- patches/tls.h.patch | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 patches/tls.h.patch diff --git a/patches/tls.h.patch b/patches/tls.h.patch new file mode 100644 index 0000000..3d72749 --- /dev/null +++ b/patches/tls.h.patch @@ -0,0 +1,32 @@ +--- include/tls.h.orig 2017-02-13 20:19:55.918636579 +0900 ++++ include/tls.h 2017-02-13 20:21:18.313073161 +0900 +@@ -22,6 +22,13 @@ + extern "C" { + #endif + ++#ifdef _MSC_VER ++#ifndef LIBRESSL_INTERNAL ++#include ++typedef SSIZE_T ssize_t; ++#endif ++#endif ++ + #include + + #include +--- libtls-standalone/include/tls.h.orig 2017-02-13 20:21:48.297958529 +0900 ++++ libtls-standalone/include/tls.h 2017-02-13 20:21:48.296958502 +0900 +@@ -22,6 +22,13 @@ + extern "C" { + #endif + ++#ifdef _MSC_VER ++#ifndef LIBRESSL_INTERNAL ++#include ++typedef SSIZE_T ssize_t; ++#endif ++#endif ++ + #include + + #include