From d341276561accd598d91bfdb736378c72ec41ab3 Mon Sep 17 00:00:00 2001 From: drbrain Date: Wed, 12 Jun 2013 20:32:42 +0000 Subject: [PATCH] * 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/trunk@41266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ ext/socket/extconf.rb | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 65c26ffd71..dc6d12dafe 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Jun 13 05:32:13 2013 Eric Hodel + + * 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 * bignum.c (rb_integer_unpack_2comp): New function. diff --git a/ext/socket/extconf.rb b/ext/socket/extconf.rb index 458871fbd9..f3be5862f0 100644 --- a/ext/socket/extconf.rb +++ b/ext/socket/extconf.rb @@ -294,6 +294,11 @@ end $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