From 4e8fbe17787fe3d46431087f791ed443b1010e19 Mon Sep 17 00:00:00 2001 From: naruse Date: Wed, 25 Mar 2015 08:10:14 +0000 Subject: * ext/socket/extconf.rb: Solaris 11 has struct tcp_info.tcpi_ca_state, but it is a dummy. * ext/socket/option.c: Solaris 11 doesn't have u_intN_t. * ext/socket/option.c: Solaris 11 needs inspect_tcpi_msec. * ext/socket/raddrinfo.c: Solaris 11 has AF_PACKET but doesn't have related macros. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/socket/extconf.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ext/socket/extconf.rb') diff --git a/ext/socket/extconf.rb b/ext/socket/extconf.rb index 931ff990fb..9a6af8be09 100644 --- a/ext/socket/extconf.rb +++ b/ext/socket/extconf.rb @@ -384,7 +384,9 @@ if have_type("struct tcp_info", headers) have_const("TCP_LISTEN", headers) have_const("TCP_CLOSING", headers) have_struct_member('struct tcp_info', 'tcpi_state', headers) - have_struct_member('struct tcp_info', 'tcpi_ca_state', headers) + if /solaris/ !~ RUBY_PLATFORM + have_struct_member('struct tcp_info', 'tcpi_ca_state', headers) + end have_struct_member('struct tcp_info', 'tcpi_retransmits', headers) have_struct_member('struct tcp_info', 'tcpi_probes', headers) have_struct_member('struct tcp_info', 'tcpi_backoff', headers) -- cgit v1.2.3