[Bug #801] socket.c compile error on Mac OS X

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) r->ai_socktype = hints->ai_socktype;
     if (! r->ai_protocol) {
    
    if (r->ai_socktype == SOCK_DGRAM) {
    r->ai_protocol = IPPROTO_UDP;

e$B%A%1%C%He(B #801 e$B$,99?7$5$l$^$7$?!#e(B (by Yukihiro M.)

e$B%9%F!<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B
e$B?JD=e(B % 0e$B$+$ie(B100e$B$KJQ99e(B

Applied in changeset r20390.

http://redmine.ruby-lang.org/issues/show/801