aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--ext/socket/extconf.rb2
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b84c123f76..4ab3ba933e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Wed Jul 22 17:29:59 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/socket/extconf.rb: enable ipv6 support for win32.
+
Wed Jul 22 16:38:39 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
* hash.c (Hash::[]): rdoc. patch by Marc-Andre Lafortune.
diff --git a/ext/socket/extconf.rb b/ext/socket/extconf.rb
index 79c9d30b36..548abd4f7c 100644
--- a/ext/socket/extconf.rb
+++ b/ext/socket/extconf.rb
@@ -37,7 +37,9 @@ default_ipv6 = /cygwin|beos|haiku/ !~ RUBY_PLATFORM
if enable_config("ipv6", default_ipv6)
if checking_for("ipv6") {try_link(<<EOF)}
#include <sys/types.h>
+#ifndef _WIN32
#include <sys/socket.h>
+#endif
int
main()
{