diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-22 11:43:32 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-22 11:43:32 +0000 |
commit | 9d43aefe922a432a5f0accfa3599976ee9de7734 (patch) | |
tree | 354a481ad1ffe9bcd3a5aa90e915298efa6c5218 | |
parent | 82041cfdecf74a47827a23bbdb017f7b6f043cd5 (diff) |
* ext/socket/extconf.rb: define IPPROTO_IPV6 macro for recent Windows
SDK.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ext/socket/extconf.rb | 3 |
2 files changed, 8 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Wed Jul 22 20:42:52 2009 NAKAMURA Usaku <usa@ruby-lang.org> + + * ext/socket/extconf.rb: define IPPROTO_IPV6 macro for recent Windows + SDK. + Wed Jul 22 19:32:10 2009 NAKAMURA Usaku <usa@ruby-lang.org> * ext/socket/mkconstants.rb: define IPV6_* constants only when INET6 diff --git a/ext/socket/extconf.rb b/ext/socket/extconf.rb index 7908e62bc7..21f99b9848 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) |