summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-22 11:43:32 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-22 11:43:32 +0000
commit29db76b3a8c4764d737a181bf5c7f56ae9541bd9 (patch)
tree354a481ad1ffe9bcd3a5aa90e915298efa6c5218 /ext
parentef51814080fb7fe2c32481c5c3239b2d58b601a8 (diff)
downloadruby-29db76b3a8c4764d737a181bf5c7f56ae9541bd9.tar.gz
ruby-29db76b3a8c4764d737a181bf5c7f56ae9541bd9.tar.xz
ruby-29db76b3a8c4764d737a181bf5c7f56ae9541bd9.zip
* ext/socket/extconf.rb: define IPPROTO_IPV6 macro for recent Windows
SDK. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/socket/extconf.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/socket/extconf.rb b/ext/socket/extconf.rb
index 7908e62bc..21f99b984 100644
--- a/ext/socket/extconf.rb
+++ b/ext/socket/extconf.rb
@@ -324,6 +324,9 @@ have_func("getpeereid")
have_header("ucred.h", headers)
have_func("getpeerucred")
+# workaround for recent Windows SDK
+$defs << "-DIPPROTO_IPV6=IPPROTO_IPV6" if have_const("IPPROTO_IPV6") && !have_macro("IPPROTO_IPV6")
+
$distcleanfiles << "constants.h" << "constdefs.*"
if have_func(test_func)