diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-12 20:32:42 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-12 20:32:42 +0000 |
commit | d341276561accd598d91bfdb736378c72ec41ab3 (patch) | |
tree | b5851ec9d3f78ec3ed09f90c855d174f1b241673 /ext | |
parent | 80a474a1e53576ed1c2d5adaa1263fc999744839 (diff) | |
download | ruby-d341276561accd598d91bfdb736378c72ec41ab3.tar.gz |
* 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')
-rw-r--r-- | ext/socket/extconf.rb | 5 |
1 files changed, 5 insertions, 0 deletions
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<sys/types.h netdb.h string.h sys/socket.h netinet/in.h> |