From cb2f3c1b876d22e53708eef602c0d3a50dcddf46 Mon Sep 17 00:00:00 2001 From: akr Date: Tue, 7 May 2013 03:14:47 +0000 Subject: [PATCH] * 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 --- ChangeLog | 6 ++++++ ext/socket/ancdata.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index dbd2e72f45..c0eacbcc79 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Tue May 7 12:12:42 2013 Tanaka Akira + + * 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 * 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 }