ruby-changes:28141
From: nobu <ko1@a...>
Date: Tue, 9 Apr 2013 02:44:44 +0900 (JST)
Subject: [ruby-changes:28141] nobu:r40193 (trunk): socket/extconf.rb: add -D
nobu 2013-04-09 02:44:35 +0900 (Tue, 09 Apr 2013) New Revision: 40193 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=40193 Log: socket/extconf.rb: add -D * ext/socket/extconf.rb: $defs needs -D or -U. nothing is added otherwize. Modified files: trunk/ChangeLog trunk/ext/socket/extconf.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 40192) +++ ChangeLog (revision 40193) @@ -1,4 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 -Tue Apr 9 02:42:44 2013 Nobuyoshi Nakada <nobu@r...> +Tue Apr 9 02:44:32 2013 Nobuyoshi Nakada <nobu@r...> + + * ext/socket/extconf.rb: $defs needs -D or -U. nothing is added + otherwize. * ext/socket/extconf.rb: check struct in_addr6, which is defined in VC6 instead of in6_addr. Index: ext/socket/extconf.rb =================================================================== --- ext/socket/extconf.rb (revision 40192) +++ ext/socket/extconf.rb (revision 40193) @@ -482,7 +482,7 @@ EOS https://github.com/ruby/ruby/blob/trunk/ext/socket/extconf.rb#L482 $defs << "-Din_addr6=in6_addr" end if have_struct_member("struct in6_addr", "s6_addr8", headers) - $defs[-1] = "s6_addr=s6_addr8" + $defs[-1] = "-Ds6_addr=s6_addr8" end if ipv6 == "kame" && have_struct_member("struct in6_addr", "s6_addr32", headers) $defs[-1] = "-DFAITH" -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/