aboutsummaryrefslogtreecommitdiff
path: root/patches
diff options
context:
space:
mode:
Diffstat (limited to 'patches')
-rw-r--r--patches/tls.h.patch20
1 files changed, 2 insertions, 18 deletions
diff --git a/patches/tls.h.patch b/patches/tls.h.patch
index 3d72749..180101d 100644
--- a/patches/tls.h.patch
+++ b/patches/tls.h.patch
@@ -3,7 +3,7 @@
3@@ -22,6 +22,13 @@ 3@@ -22,6 +22,13 @@
4 extern "C" { 4 extern "C" {
5 #endif 5 #endif
6 6
7+#ifdef _MSC_VER 7+#ifdef _MSC_VER
8+#ifndef LIBRESSL_INTERNAL 8+#ifndef LIBRESSL_INTERNAL
9+#include <basetsd.h> 9+#include <basetsd.h>
@@ -12,21 +12,5 @@
12+#endif 12+#endif
13+ 13+
14 #include <sys/types.h> 14 #include <sys/types.h>
15 15
16 #include <stddef.h>
17--- libtls-standalone/include/tls.h.orig 2017-02-13 20:21:48.297958529 +0900
18+++ libtls-standalone/include/tls.h 2017-02-13 20:21:48.296958502 +0900
19@@ -22,6 +22,13 @@
20 extern "C" {
21 #endif
22
23+#ifdef _MSC_VER
24+#ifndef LIBRESSL_INTERNAL
25+#include <basetsd.h>
26+typedef SSIZE_T ssize_t;
27+#endif
28+#endif
29+
30 #include <sys/types.h>
31
32 #include <stddef.h> 16 #include <stddef.h>