summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-12 12:10:10 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-12 12:10:10 +0000
commitf73eaeb3a662f7d8ca3d2c18ce48915437187afe (patch)
tree3fee4f864e93b34e0952660a371a306e567e5a9b
parent87bb97ceb53e19d2ab458c71cd83060a42222137 (diff)
* 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
-rw-r--r--ChangeLog6
-rw-r--r--ext/socket/extconf.rb3
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 180ccd1d27..82eba1f742 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Wed Aug 12 21:07:46 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/socket/extconf.rb: if ipv6 is enabled, the version of Windows
+ most be XP or later.
+ [ruby-core:24601]
+
Wed Aug 12 15:59:29 2009 NAKAMURA Usaku <usa@ruby-lang.org>
* common.mk (yes-test-knownbug): use RUNRUBY instead of MINIRUBY.
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