mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
82041cfdec
commit
9d43aefe92
2 changed files with 8 additions and 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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue