From f73eaeb3a662f7d8ca3d2c18ce48915437187afe Mon Sep 17 00:00:00 2001 From: usa Date: Wed, 12 Aug 2009 12:10:10 +0000 Subject: * ext/socket/extconf.rb: if ipv6 is enabled, the version of Windows most be XP or later. [ruby-core:24601] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/socket/extconf.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ext/socket/extconf.rb') diff --git a/ext/socket/extconf.rb b/ext/socket/extconf.rb index 21f99b9848..1d233fdd1f 100644 --- a/ext/socket/extconf.rb +++ b/ext/socket/extconf.rb @@ -52,6 +52,9 @@ EOF end if ipv6 + if $mingw + $CPPFLAGS << " -D_WIN32_WINNT=0x501" + end ipv6lib = nil class << (fmt = "unknown") def %(s) s || self end -- cgit v1.2.3