aboutsummaryrefslogtreecommitdiff
path: root/patches/tls.h.patch
blob: 3d72749cd1f42211a5a64c3f354ce2811457f34b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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 <basetsd.h>
+typedef SSIZE_T ssize_t;
+#endif
+#endif
+
 #include <sys/types.h>
 
 #include <stddef.h>
--- 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 <basetsd.h>
+typedef SSIZE_T ssize_t;
+#endif
+#endif
+
 #include <sys/types.h>
 
 #include <stddef.h>