summaryrefslogtreecommitdiff
path: root/ext/socket
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-12 20:32:42 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-12 20:32:42 +0000
commitd341276561accd598d91bfdb736378c72ec41ab3 (patch)
treeb5851ec9d3f78ec3ed09f90c855d174f1b241673 /ext/socket
parent80a474a1e53576ed1c2d5adaa1263fc999744839 (diff)
* 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
Diffstat (limited to 'ext/socket')
-rw-r--r--ext/socket/extconf.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/socket/extconf.rb b/ext/socket/extconf.rb
index 458871f..f3be586 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<sys/types.h netdb.h string.h sys/socket.h netinet/in.h>