aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--patches/tls.h.patch32
1 files changed, 32 insertions, 0 deletions
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 @@
1--- include/tls.h.orig 2017-02-13 20:19:55.918636579 +0900
2+++ include/tls.h 2017-02-13 20:21:18.313073161 +0900
3@@ -22,6 +22,13 @@
4 extern "C" {
5 #endif
6
7+#ifdef _MSC_VER
8+#ifndef LIBRESSL_INTERNAL
9+#include <basetsd.h>
10+typedef SSIZE_T ssize_t;
11+#endif
12+#endif
13+
14 #include <sys/types.h>
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>