* ext/socket/extconf.rb: Don't check fields of struct tcp_info if the

structure is not available.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2014-05-19 20:00:00 +00:00
Родитель b9a178e56c
Коммит 7a1972ab9c
2 изменённых файлов: 59 добавлений и 53 удалений

Просмотреть файл

@ -1,3 +1,8 @@
Tue May 20 04:58:54 2014 Tanaka Akira <akr@fsij.org>
* ext/socket/extconf.rb: Don't check fields of struct tcp_info if the
structure is not available.
Mon May 19 23:13:33 2014 Tanaka Akira <akr@fsij.org>
* ext/socket/option.c (inspect_tcp_info): Permit longer data. (glibc

Просмотреть файл

@ -371,7 +371,7 @@ have_msg_control = nil
have_msg_control = have_struct_member('struct msghdr', 'msg_control', headers) unless $mswin or $mingw
have_struct_member('struct msghdr', 'msg_accrights', headers)
have_type("struct tcp_info", headers)
if have_type("struct tcp_info", headers)
have_const("TCP_ESTABLISHED", headers)
have_const("TCP_SYN_SENT", headers)
have_const("TCP_SYN_RECV", headers)
@ -425,6 +425,7 @@ have_struct_member('struct tcp_info', 'tcpi_toe_tid', headers)
have_struct_member('struct tcp_info', 'tcpi_snd_rexmitpack', headers)
have_struct_member('struct tcp_info', 'tcpi_rcv_ooopack', headers)
have_struct_member('struct tcp_info', 'tcpi_snd_zerowin', headers)
end
case RUBY_PLATFORM
when /mswin(32|64)|mingw/