Skip to content

Commit

Permalink
* ext/socket/extconf.rb: Merge from 1.8: explicity specify
Browse files Browse the repository at this point in the history
  IPPROTO_TCP as a SOCK_STREAM protocol to use, when it is not the
  only protocol.  KAME, for example, supports other SOCK_STREAM
  protocols such as SCTP.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@6174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
knu committed Apr 16, 2004
1 parent 31d1468 commit be8d0c6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
Fri Apr 16 13:48:29 2004 Akinori MUSHA <knu@iDaemons.org>

* ext/socket/extconf.rb: Merge from 1.8: explicity specify
IPPROTO_TCP as a SOCK_STREAM protocol to use, when it is not the
only protocol. KAME, for example, supports other SOCK_STREAM
protocols such as SCTP.

Sun Nov 2 17:53:09 2003 WATANABE Hirofumi <eban@ruby-lang.org>

* cygwin/GNUmakefile: allow "B" type in defined symbols.
Expand Down
1 change: 1 addition & 0 deletions ext/socket/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@
for (passive = 0; passive <= 1; passive++) {
memset(&hints, 0, sizeof(hints));
hints.ai_family = AF_UNSPEC;
hints.ai_protocol = IPPROTO_TCP;
hints.ai_flags = passive ? AI_PASSIVE : 0;
hints.ai_socktype = SOCK_STREAM;
if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
Expand Down

0 comments on commit be8d0c6

Please sign in to comment.