1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

socket/extconf.rb: add -D

* ext/socket/extconf.rb: $defs needs -D or -U.  nothing is added
  otherwize.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2013-04-08 17:44:35 +00:00
parent f12df1a752
commit 53fdb9e190
2 changed files with 5 additions and 2 deletions

View file

@ -1,4 +1,7 @@
Tue Apr 9 02:42:44 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
Tue Apr 9 02:44:32 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
* 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.

View file

@ -482,7 +482,7 @@ EOS
$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"