Bug #801: socket.c compile error on Mac OS X
http://redmine.ruby-lang.org/issues/show/801
e$B5/I<<Te(B: Shumpei A.
e$B%9%F!<%?%9e(B: Open, e$BM%@hEYe(B: Normal
Index: ext/socket/socket.c
— ext/socket/socket.c (revision 20389)
+++ ext/socket/socket.c (working copy)
@@ -953,7 +953,7 @@
struct addrinfo *r;
r = res;
while (r) {
-
if (! r->ai_socktype) r->ai_socktype = hints.ai_socktype;
-
if (r->ai_socktype == SOCK_DGRAM) {if (! r->ai_socktype) r->ai_socktype = hints->ai_socktype; if (! r->ai_protocol) {
r->ai_protocol = IPPROTO_UDP;