aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2015-11-13 14:53:00 +0000
committerWerner Koch <[email protected]>2015-11-21 12:01:09 +0000
commitcef28d96debcf94003f94f3ea2181e80aff0b665 (patch)
tree2f9b570d1a8abf56ba836b22108a9afeb4ec9dfa
parentPost release updates. (diff)
downloadlibassuan-cef28d96debcf94003f94f3ea2181e80aff0b665.tar.gz
libassuan-cef28d96debcf94003f94f3ea2181e80aff0b665.zip
Fix windows build with mingw-w64 2.0.x
* src/assuan-socket.c: Add errno values not defined by mingw-w64 2.0
-rw-r--r--src/assuan-socket.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/assuan-socket.c b/src/assuan-socket.c
index 89723b3..5ad7299 100644
--- a/src/assuan-socket.c
+++ b/src/assuan-socket.c
@@ -70,6 +70,30 @@
# define S_IRGRP 0
# define S_IWGRP 0
#endif
+#ifndef ENOTSUP
+#define ENOTSUP 129
+#endif
+#ifndef EPROTO
+#define EPROTO 134
+#endif
+#ifndef EPROTONOSUPPORT
+#define EPROTONOSUPPORT 135
+#endif
+#ifndef ENETDOWN
+#define ENETDOWN 116
+#endif
+#ifndef ENETUNREACH
+#define ENETUNREACH 118
+#endif
+#ifndef EHOSTUNREACH
+#define EHOSTUNREACH 110
+#endif
+#ifndef ECONNREFUSED
+#define ECONNREFUSED 107
+#endif
+#ifndef ETIMEDOUT
+#define ETIMEDOUT 138
+#endif
#endif
#ifndef ENAMETOOLONG