diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-07 03:14:47 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-07 03:14:47 +0000 |
| commit | cb2f3c1b876d22e53708eef602c0d3a50dcddf46 (patch) | |
| tree | ae38a54426d0e34219c9fb4b0b1d0d8a93a72c84 | |
| parent | 2b792abd69e38334d8b02f6fbd45e04e389b341b (diff) | |
* ext/socket/ancdata.c (ancillary_inspect): Don't call
anc_inspect_ipv6_pktinfo if !HAVE_TYPE_STRUCT_IN6_PKTINFO.
anc_inspect_ipv6_pktinfo is not defined in the case.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 6 | ||||
| -rw-r--r-- | ext/socket/ancdata.c | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,9 @@ +Tue May 7 12:12:42 2013 Tanaka Akira <akr@fsij.org> + + * ext/socket/ancdata.c (ancillary_inspect): Don't call + anc_inspect_ipv6_pktinfo if !HAVE_TYPE_STRUCT_IN6_PKTINFO. + anc_inspect_ipv6_pktinfo is not defined in the case. + Tue May 7 12:10:52 2013 Tanaka Akira <akr@fsij.org> * ext/socket/socket.c (socket_s_ip_address_list): Cast EXTRA_SPACE as diff --git a/ext/socket/ancdata.c b/ext/socket/ancdata.c index 99590e46df..ac79e65689 100644 --- a/ext/socket/ancdata.c +++ b/ext/socket/ancdata.c @@ -1052,7 +1052,7 @@ ancillary_inspect(VALUE self) # if defined(IPPROTO_IPV6) case IPPROTO_IPV6: switch (type) { -# if defined(IPV6_PKTINFO) /* RFC 3542 */ +# if defined(IPV6_PKTINFO) && defined(HAVE_TYPE_STRUCT_IN6_PKTINFO) /* RFC 3542 */ case IPV6_PKTINFO: inspected = anc_inspect_ipv6_pktinfo(level, type, data, ret); break; # endif } |
