summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-02-10 02:15:49 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-02-10 02:15:49 +0000
commit77f047ec898328b26a77cda5f1e5862604ef0d4c (patch)
treeaca419d29ac02401b78ccde43bf2c0588dc9439a /ext
parentcb7afeceed3112c46cad29cebbeb3b436b9416ab (diff)
* win32/Makefile.sub (COMMON_HEADERS): shouldn't include winsock2.h.
* ext/socket/extconf.rb (sockaddr_storage): remove workaround for mswin32. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/socket/extconf.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/socket/extconf.rb b/ext/socket/extconf.rb
index 772bf57f9f8..66d7462cbf7 100644
--- a/ext/socket/extconf.rb
+++ b/ext/socket/extconf.rb
@@ -123,8 +123,7 @@ end
cppflags = $CPPFLAGS
$CPPFLAGS += flags
end
- if /mswin32|mingw/ !~ RUBY_PLATFORM and
- have_struct_member("struct sockaddr_storage", "ss_family", headers)
+ if have_struct_member("struct sockaddr_storage", "ss_family", headers)
$defs[-1] = "-DHAVE_SOCKADDR_STORAGE"
break
elsif flags