ruby-changes:29214
From: drbrain <ko1@a...>
Date: Thu, 13 Jun 2013 05:32:53 +0900 (JST)
Subject: [ruby-changes:29214] drbrain:r41266 (trunk): * ext/socket/extconf.rb: Enable RFC 3542 IPV6 socket options for OS X
drbrain 2013-06-13 05:32:42 +0900 (Thu, 13 Jun 2013) New Revision: 41266 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41266 Log: * ext/socket/extconf.rb: Enable RFC 3542 IPV6 socket options for OS X 10.7+. [ruby-trunk - Bug #8517] Modified files: trunk/ChangeLog trunk/ext/socket/extconf.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 41265) +++ ChangeLog (revision 41266) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Thu Jun 13 05:32:13 2013 Eric Hodel <drbrain@s...> + + * ext/socket/extconf.rb: Enable RFC 3542 IPV6 socket options for OS X + 10.7+. [ruby-trunk - Bug #8517] + Thu Jun 13 00:17:18 2013 Tanaka Akira <akr@f...> * bignum.c (rb_integer_unpack_2comp): New function. Index: ext/socket/extconf.rb =================================================================== --- ext/socket/extconf.rb (revision 41265) +++ ext/socket/extconf.rb (revision 41266) @@ -294,6 +294,11 @@ end https://github.com/ruby/ruby/blob/trunk/ext/socket/extconf.rb#L294 $INCFLAGS << " -I$(topdir) -I$(top_srcdir)" +if /darwin/ =~ RUBY_PLATFORM + # For IPv6 extension header access on OS X 10.7+ [Bug #8517] + $CFLAGS << " -D__APPLE_USE_RFC_3542" +end + headers = [] unless $mswin or $mingw headers = %w<sys/types.h netdb.h string.h sys/socket.h netinet/in.h> -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/