summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/socket/extconf.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/socket/extconf.rb b/ext/socket/extconf.rb
index 66d7462cbf..772bf57f9f 100644
--- a/ext/socket/extconf.rb
+++ b/ext/socket/extconf.rb
@@ -123,7 +123,8 @@ end
cppflags = $CPPFLAGS
$CPPFLAGS += flags
end
- if have_struct_member("struct sockaddr_storage", "ss_family", headers)
+ if /mswin32|mingw/ !~ RUBY_PLATFORM and
+ have_struct_member("struct sockaddr_storage", "ss_family", headers)
$defs[-1] = "-DHAVE_SOCKADDR_STORAGE"
break
elsif flags