diff options
Diffstat (limited to 'lang/ruby16/patches/patch-af')
-rw-r--r-- | lang/ruby16/patches/patch-af | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/lang/ruby16/patches/patch-af b/lang/ruby16/patches/patch-af deleted file mode 100644 index 4db9b969c4d..00000000000 --- a/lang/ruby16/patches/patch-af +++ /dev/null @@ -1,28 +0,0 @@ -$NetBSD: patch-af,v 1.1.1.1 2004/11/27 14:14:05 taca Exp $ - ---- ext/socket/socket.c.orig 2002-11-01 03:40:11.000000000 +0900 -+++ ext/socket/socket.c -@@ -585,6 +585,23 @@ ip_addrsetup(host, port) - rb_raise(rb_eSocket, "getaddrinfo: %s", gai_strerror(error)); - } - -+#if defined(__APPLE__) && defined(__MACH__) -+ { -+ struct addrinfo *r; -+ r = res; -+ while (r) { -+ if (! r->ai_socktype) r->ai_socktype = hints.ai_socktype; -+ if (! r->ai_protocol) { -+ if (r->ai_socktype == SOCK_DGRAM) { -+ r->ai_protocol = IPPROTO_UDP; -+ } else if (r->ai_socktype == SOCK_STREAM) { -+ r->ai_protocol = IPPROTO_TCP; -+ } -+ } -+ r = r->ai_next; -+ } -+ } -+#endif - return res; - } - |