Really fix FTBFS on kFreeBSD/Hurd by back-porting fix
authorBalint Reczey <balint@balintreczey.hu>
Thu, 24 Jul 2014 17:23:40 +0000 (19:23 +0200)
committerBalint Reczey <balint@balintreczey.hu>
Thu, 24 Jul 2014 17:26:55 +0000 (19:26 +0200)
Closes: #754646
debian/patches/0001-Use-sockaddr_in6-instead-of-sockaddr6_in.patch [new file with mode: 0644]
debian/patches/series [new file with mode: 0644]

diff --git a/debian/patches/0001-Use-sockaddr_in6-instead-of-sockaddr6_in.patch b/debian/patches/0001-Use-sockaddr_in6-instead-of-sockaddr6_in.patch
new file mode 100644 (file)
index 0000000..a8aff06
--- /dev/null
@@ -0,0 +1,25 @@
+From 18c94b4633c6157c3e75890c15ea51b73e7bf876 Mon Sep 17 00:00:00 2001
+From: Petr Salinger <Petr.Salinger@seznam.cz>
+Date: Sat, 19 Jul 2014 01:14:43 +0200
+Subject: [PATCH] Use sockaddr_in6 instead of sockaddr6_in
+
+---
+ lib/socket.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/socket.c b/lib/socket.c
+index f973f01..3f7f89f 100644
+--- a/lib/socket.c
++++ b/lib/socket.c
+@@ -506,7 +506,7 @@ static int rpc_connect_sockaddr_async(struct rpc_context *rpc, struct sockaddr_s
+                                       ((struct sockaddr_in6 *)&ss)->sin6_port = port;
+                                       ((struct sockaddr_in6 *)&ss)->sin6_family      = AF_INET6;
+ #ifdef HAVE_SOCKADDR_LEN
+-                                      ((struct sockaddr_in6 *)&ss)->sin6_len = sizeof(struct sockaddr6_in);
++                                      ((struct sockaddr_in6 *)&ss)->sin6_len = sizeof(struct sockaddr_in6);
+ #endif
+                                       break;
+                               }
+-- 
+1.9.1
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644 (file)
index 0000000..22a91ad
--- /dev/null
@@ -0,0 +1 @@
+0001-Use-sockaddr_in6-instead-of-sockaddr6_in.patch