diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-03-25 08:10:14 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-03-25 08:10:14 +0000 |
commit | 4e8fbe17787fe3d46431087f791ed443b1010e19 (patch) | |
tree | 23ae15e50f541be515f8c972c749fd25877d26c5 /ext/socket/raddrinfo.c | |
parent | 526b12964f5ff09e671a2faf69bc6ca69db8bb54 (diff) | |
download | ruby-4e8fbe17787fe3d46431087f791ed443b1010e19.tar.gz |
* 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
Diffstat (limited to 'ext/socket/raddrinfo.c')
-rw-r--r-- | ext/socket/raddrinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/socket/raddrinfo.c b/ext/socket/raddrinfo.c index e13684ac74..ac36743b8a 100644 --- a/ext/socket/raddrinfo.c +++ b/ext/socket/raddrinfo.c @@ -1210,7 +1210,7 @@ rsock_inspect_sockaddr(struct sockaddr *sockaddr_arg, socklen_t socklen, VALUE r } #endif -#ifdef AF_PACKET +#if defined(AF_PACKET) && defined(__linux__) /* GNU/Linux */ case AF_PACKET: { |