Add patch to make libassuan-2.4.0 compile
authorAndre Heinecke <aheinecke@intevation.de>
Fri, 13 Nov 2015 14:59:47 +0000 (15:59 +0100)
committerAndre Heinecke <aheinecke@intevation.de>
Fri, 13 Nov 2015 14:59:47 +0000 (15:59 +0100)
* patches/libassuan-2.4.0/
0001-Fix-windows-build-with-mingw-w64-2.0.x.patch: New.
* Makefile.am (EXTRA_DIST): Add this.

--
Not needed on jessie

Makefile.am
patches/libassuan-2.4.0/0001-Fix-windows-build-with-mingw-w64-2.0.x.patch [new file with mode: 0755]

index fe9e5d5..741f0ec 100644 (file)
@@ -47,7 +47,8 @@ EXTRA_DIST = autogen.sh README.GIT ONEWS \
                patches/gnutls-2.12.23/25_updatedgdocfrommaster.patch \
         patches/libtasn1-2.14/gnulib-mingw-w64-fix.patch \
                patches/w32pth-2.0.5/workaround-broken-libtool.patch \
-               patches/scute-1.4.0/workaround-broken-libtool.patch
+               patches/scute-1.4.0/workaround-broken-libtool.patch \
+               patches/libassuan-2.4.0/0001-Fix-windows-build-with-mingw-w64-2.0.x.patch
 
 copy-news:
        cp NEWS doc/website/NEWS.last
diff --git a/patches/libassuan-2.4.0/0001-Fix-windows-build-with-mingw-w64-2.0.x.patch b/patches/libassuan-2.4.0/0001-Fix-windows-build-with-mingw-w64-2.0.x.patch
new file mode 100755 (executable)
index 0000000..083b180
--- /dev/null
@@ -0,0 +1,51 @@
+#! /bin/sh
+patch -p1 -l -f $* < $0
+exit $?
+
+From d9ce26f49e506d41317bae9357384bb811870d2e Mon Sep 17 00:00:00 2001
+From: Andre Heinecke <aheinecke@intevation.de>
+Date: Fri, 13 Nov 2015 15:53:00 +0100
+Subject: [PATCH] Fix windows build with mingw-w64 2.0.x
+
+* src/assuan-socket.c: Add errno values not defined by mingw-w64 2.0
+---
+ src/assuan-socket.c | 24 ++++++++++++++++++++++++
+ 1 file changed, 24 insertions(+)
+
+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
+--
+2.1.4