diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-19 11:52:03 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-19 11:52:03 +0000 |
commit | 3aacf8850001fa910edbefd48c7550daa1edcfe5 (patch) | |
tree | d9c2343b9b2a8aedce7f06f10ff9def6f1fd1a88 /ext/socket/rubysocket.h | |
parent | 2817c2eec4022c75c04939ad16abd9d9fb8a3f43 (diff) |
* ext/socket/option.c (inspect_tcp_info): New function to inspect struct tcp_info.
(sockopt_inspect): Use inspect_tcp_info.
* ext/socket/extconf.rb: Check tcp_info related things.
* ext/socket/rubysocket.h: Include netinet/tcp_fsm.h if available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/rubysocket.h')
-rw-r--r-- | ext/socket/rubysocket.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/socket/rubysocket.h b/ext/socket/rubysocket.h index a4fced8ca4..8beffd2e76 100644 --- a/ext/socket/rubysocket.h +++ b/ext/socket/rubysocket.h @@ -39,6 +39,9 @@ # ifdef HAVE_NETINET_TCP_H # include <netinet/tcp.h> # endif +# ifdef HAVE_NETINET_TCP_FSM_H +# include <netinet/tcp_fsm.h> +# endif # ifdef HAVE_NETINET_UDP_H # include <netinet/udp.h> # endif |