diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | ext/socket/extconf.rb | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,9 @@ +Fri Jan 13 03:28:00 2012 Luis Lavena <luislavena@gmail.com> + + * ext/socket/extconf.rb (if ipv6): only define _WIN32_WINNT if was not + previously defined. This solve warnings with multiple defines in + command line with GCC 4.6.1 + Thu Jan 12 18:44:31 2012 Nobuyoshi Nakada <nobu@ruby-lang.org> * lib/mkmf.rb: fix r33904 and revert r33905. initialize global diff --git a/ext/socket/extconf.rb b/ext/socket/extconf.rb index 2e308fe1ab..7bfc01c35d 100644 --- a/ext/socket/extconf.rb +++ b/ext/socket/extconf.rb @@ -56,7 +56,7 @@ end if ipv6 if $mingw - $CPPFLAGS << " -D_WIN32_WINNT=0x501" + $CPPFLAGS << " -D_WIN32_WINNT=0x501" unless $CPPFLAGS.include?("_WIN32_WINNT") end ipv6lib = nil class << (fmt = "unknown") |