diff options
author | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-15 16:31:06 +0000 |
---|---|---|
committer | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-15 16:31:06 +0000 |
commit | 9fb5a1cdbf799fd6ab36eb4782b1a1e0dd3783f4 (patch) | |
tree | 5408284c66581ae4d79cc985ba7d7817282f6ef6 | |
parent | 113d3599caa41605e54be08b84a9403adcdebc0c (diff) |
merge revision(s) 41266: [Backport #8517]
* ext/socket/extconf.rb: Enable RFC 3542 IPV6 socket options for OS X
10.7+. [ruby-trunk - Bug #8517]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@41320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ext/socket/extconf.rb | 6 | ||||
-rw-r--r-- | version.h | 2 |
3 files changed, 12 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Sun Jun 16 01:22:35 2013 Eric Hodel <drbrain@segment7.net> + + * ext/socket/extconf.rb: Enable RFC 3542 IPV6 socket options for OS X + 10.7+. [ruby-trunk - Bug #8517] + Sun Jun 16 01:11:10 2013 Koichi Sasada <ko1@atdot.net> * compile.c (rb_iseq_compile_node): fix location of a `trace' diff --git a/ext/socket/extconf.rb b/ext/socket/extconf.rb index 82f7562994..13937ac773 100644 --- a/ext/socket/extconf.rb +++ b/ext/socket/extconf.rb @@ -23,6 +23,12 @@ else have_library("socket", "socket") end +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 $bccwin or $mingw headers = %w<sys/types.h netdb.h string.h sys/socket.h netinet/in.h> end @@ -1,6 +1,6 @@ #define RUBY_VERSION "2.0.0" #define RUBY_RELEASE_DATE "2013-06-16" -#define RUBY_PATCHLEVEL 219 +#define RUBY_PATCHLEVEL 220 #define RUBY_RELEASE_YEAR 2013 #define RUBY_RELEASE_MONTH 6 |