openbsd-ports/devel/ORBit2/patches/patch-linc2_src_linc-protocols_c
ajacoutot 4a78a10ead Fix build with glib2>=2.36.0.
Bring in some fixes from upstream.
Merge PLISTs.
2013-03-27 17:58:43 +00:00

18 lines
764 B
Plaintext

$OpenBSD: patch-linc2_src_linc-protocols_c,v 1.1 2013/03/27 17:58:44 ajacoutot Exp $
From 623749eb6e2a87f6a8723b68e0d224b8ea08ff60 Mon Sep 17 00:00:00 2001
From: Alexandre Rostovtsev <tetromino@gentoo.org>
Date: Tue, 12 Feb 2013 05:27:41 +0000
Subject: Fix link_protocol_is_local_ipv46 for ipv4 on some ipv6-enabled machines
--- linc2/src/linc-protocols.c.orig Tue Feb 9 13:05:35 2010
+++ linc2/src/linc-protocols.c Wed Mar 27 10:55:25 2013
@@ -383,6 +383,7 @@ link_protocol_is_local_ipv46 (const LinkProtocolInfo *
memset(&hints, 0, sizeof(hints));
hints.ai_socktype = SOCK_STREAM;
hints.ai_flags = AI_CANONNAME;
+ hints.ai_family = proto->family;
if (getaddrinfo(link_get_local_hostname(), NULL, &hints, &local_addr) != 0) {
if (!warned++)