summaryrefslogtreecommitdiff
path: root/ext/socket/extconf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/socket/extconf.rb')
-rw-r--r--ext/socket/extconf.rb3
1 files changed, 3 insertions, 0 deletions
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