aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkinichiro <kinichiro.inoguchi@gmail.com>2017-02-13 20:25:49 +0900
committerkinichiro <kinichiro.inoguchi@gmail.com>2017-02-13 20:25:49 +0900
commit9d75e5ea975fc6d1b8b6eb333416d76144f7d2ee (patch)
tree9d6a627c7a063df086c3ff2a9e29930bd35ffbd0
parent3ba2699dabf919eedce777eb361588a28d67b253 (diff)
downloadportable-9d75e5ea975fc6d1b8b6eb333416d76144f7d2ee.tar.gz
portable-9d75e5ea975fc6d1b8b6eb333416d76144f7d2ee.tar.bz2
portable-9d75e5ea975fc6d1b8b6eb333416d76144f7d2ee.zip
Add definition of ssize_t to tls.h for Windows
Diffstat (limited to '')
-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>