ruby-changes:12535
From: usa <ko1@a...>
Date: Wed, 22 Jul 2009 20:43:54 +0900 (JST)
Subject: [ruby-changes:12535] Ruby:r24241 (trunk): * ext/socket/extconf.rb: define IPPROTO_IPV6 macro for recent Windows
usa 2009-07-22 20:43:32 +0900 (Wed, 22 Jul 2009) New Revision: 24241 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=24241 Log: * ext/socket/extconf.rb: define IPPROTO_IPV6 macro for recent Windows SDK. Modified files: trunk/ChangeLog trunk/ext/socket/extconf.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 24240) +++ ChangeLog (revision 24241) @@ -1,3 +1,8 @@ +Wed Jul 22 20:42:52 2009 NAKAMURA Usaku <usa@r...> + + * ext/socket/extconf.rb: define IPPROTO_IPV6 macro for recent Windows + SDK. + Wed Jul 22 19:32:10 2009 NAKAMURA Usaku <usa@r...> * ext/socket/mkconstants.rb: define IPV6_* constants only when INET6 Index: ext/socket/extconf.rb =================================================================== --- ext/socket/extconf.rb (revision 24240) +++ ext/socket/extconf.rb (revision 24241) @@ -324,6 +324,9 @@ 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) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/