diff options
| author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-07 02:40:22 +0000 |
|---|---|---|
| committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-07 02:40:22 +0000 |
| commit | b33ce6bef450067cdb961272876bfa554b0bac4a (patch) | |
| tree | 0db0792e8c8fb6ec8c30bffdf037da5a6c3a4854 /ext | |
| parent | 8282bdbf559929c9265bf15c8dc10bc350a895d4 (diff) | |
| download | ruby-b33ce6bef450067cdb961272876bfa554b0bac4a.tar.gz ruby-b33ce6bef450067cdb961272876bfa554b0bac4a.tar.xz ruby-b33ce6bef450067cdb961272876bfa554b0bac4a.zip | |
* configure.in: add new configure option `--with-winsock2' for mingw.
* win32/Makefile.sub (config.h): define USE_WINSOCK2 in config.h
instead of in CPPFLAGS.
* ext/socket/extconf.rb: determine whether to use winsock2 or not
by using with_config.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/socket/extconf.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/socket/extconf.rb b/ext/socket/extconf.rb index 6469535ca..41b715e0a 100644 --- a/ext/socket/extconf.rb +++ b/ext/socket/extconf.rb @@ -6,7 +6,7 @@ when /bccwin32/ have_library("ws2_32", "WSACleanup") when /mswin32|mingw/ test_func = "WSACleanup" - if /USE_WINSOCK2/ =~ $CPPFLAGS + if with_config("winsock2") have_library("ws2_32", "WSACleanup") else have_library("wsock32", "WSACleanup") |
