summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authornagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-15 16:31:06 +0000
committernagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-15 16:31:06 +0000
commit9fb5a1cdbf799fd6ab36eb4782b1a1e0dd3783f4 (patch)
tree5408284c66581ae4d79cc985ba7d7817282f6ef6 /ext
parent113d3599caa41605e54be08b84a9403adcdebc0c (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
Diffstat (limited to 'ext')
-rw-r--r--ext/socket/extconf.rb6
1 files changed, 6 insertions, 0 deletions
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