8000 * ext/socket/extconf.rb: Merge from 1.8: explicity specify · documenting-ruby/ruby@be8d0c6 · GitHub
[go: up one dir, main page]

Skip to content

Commit be8d0c6

Browse files
committed
* 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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@6174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 31d1468 commit be8d0c6

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

ChangeLog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
Fri Apr 16 13:48:29 2004 Akinori MUSHA <knu@iDaemons.org>
2+
3+
* ext/socket/extconf.rb: Merge from 1.8: explicity specify
4+
IPPROTO_TCP as a SOCK_STREAM protocol to use, when it is not the
5+
only protocol. KAME, for example, supports other SOCK_STREAM
6+
protocols such as SCTP.
7+
18
Sun Nov 2 17:53:09 2003 WATANABE Hirofumi <eban@ruby-lang.org>
29

310
* cygwin/GNUmakefile: allow "B" type in defined symbols.

ext/socket/extconf.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@
207207
for (passive = 0; passive <= 1; passive++) {
208208
memset(&hints, 0, sizeof(hints));
209209
hints.ai_family = AF_UNSPEC;
210+
hints.ai_protocol = IPPROTO_TCP;
210211
hints.ai_flags = passive ? AI_PASSIVE : 0;
211212
hints.ai_socktype = SOCK_STREAM;
212213
if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {

0 commit comments

Comments
 (0)
0