From 53fdb9e190110afeb318b6bb7b0a8f17a9873fe8 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 8 Apr 2013 17:44:35 +0000 Subject: [PATCH] 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 --- ChangeLog | 5 ++++- ext/socket/extconf.rb | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4b3f158900..44894cd50d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,7 @@ -Tue Apr 9 02:42:44 2013 Nobuyoshi Nakada +Tue Apr 9 02:44:32 2013 Nobuyoshi Nakada + + * 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. diff --git a/ext/socket/extconf.rb b/ext/socket/extconf.rb index a168404ae3..e8b2d39ae2 100644 --- a/ext/socket/extconf.rb +++ b/ext/socket/extconf.rb @@ -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"