Project

General

Profile

Actions

Bug #801

closed

socket.c compile error on Mac OS X

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

Added by akai (Shumpei Akai) almost 17 years ago. Updated over 14 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
Backport:
[ruby-dev:37234]

Description

=begin
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;
    

=end

Actions

Also available in: PDF Atom