From e49203726e2d6feee19d46d12bd93a1fe948248d Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 6 May 2003 16:48:51 +0000 Subject: * numeric.c (num_step): remove epsilon; add margin of 0.5, to make "1.1.step(1.5,0.1)" to work (third try). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/socket/extconf.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'ext/socket') diff --git a/ext/socket/extconf.rb b/ext/socket/extconf.rb index 6b03307f97..b9e66f676e 100644 --- a/ext/socket/extconf.rb +++ b/ext/socket/extconf.rb @@ -197,6 +197,7 @@ main() 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) { -- cgit v1.2.3