diff options
Diffstat (limited to 'lang/mono/patches/patch-bg')
-rw-r--r-- | lang/mono/patches/patch-bg | 32 |
1 files changed, 4 insertions, 28 deletions
diff --git a/lang/mono/patches/patch-bg b/lang/mono/patches/patch-bg index 4c4608769e1..4b1babd0649 100644 --- a/lang/mono/patches/patch-bg +++ b/lang/mono/patches/patch-bg @@ -1,19 +1,7 @@ -$NetBSD: patch-bg,v 1.2 2010/02/16 17:01:05 kefren Exp $ ---- mono/metadata/socket-io.c.orig 2009-10-22 00:48:35.000000000 +0300 -+++ mono/metadata/socket-io.c 2010-02-16 13:54:05.000000000 +0200 -@@ -2759,7 +2759,10 @@ MonoBoolean ves_icall_System_Net_Dns_Get - memset(&hints, 0, sizeof(hints)); - hints.ai_family = get_family_hint (); - hints.ai_socktype = SOCK_STREAM; -- hints.ai_flags = AI_CANONNAME | AI_ADDRCONFIG; -+ hints.ai_flags = AI_CANONNAME; -+#ifdef AI_ADDRCONFIG -+ hints.ai_flags |= AI_ADDRCONFIG; -+#endif - - if (*hostname && getaddrinfo(hostname, NULL, &hints, &info) == -1) { - return(FALSE); -@@ -2904,7 +2907,7 @@ extern MonoBoolean ves_icall_System_Net_ +$NetBSD: patch-bg,v 1.3 2011/04/25 14:01:40 kefren Exp $ +--- mono/metadata/socket-io.c.orig 2011-02-23 21:21:01.000000000 +0200 ++++ mono/metadata/socket-io.c 2011-04-25 12:21:56.000000000 +0300 +@@ -2998,7 +2998,7 @@ extern MonoBoolean ves_icall_System_Net_ struct sockaddr_in6 saddr6; struct addrinfo *info = NULL, hints; gint32 family; @@ -22,15 +10,3 @@ $NetBSD: patch-bg,v 1.2 2010/02/16 17:01:05 kefren Exp $ int flags = 0; #else struct in_addr inaddr; -@@ -2961,7 +2964,10 @@ extern MonoBoolean ves_icall_System_Net_ - memset (&hints, 0, sizeof(hints)); - hints.ai_family = get_family_hint (); - hints.ai_socktype = SOCK_STREAM; -- hints.ai_flags = AI_CANONNAME | AI_ADDRCONFIG; -+ hints.ai_flags = AI_CANONNAME; -+#ifdef AI_ADDRCONFIG -+ hints.ai_flags |= AI_ADDRCONFIG; -+#endif - - if( getaddrinfo (hostname, NULL, &hints, &info) == -1 ) { - return(FALSE); |