summaryrefslogtreecommitdiff
path: root/ext/socket/constants.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-02 05:23:23 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-02 05:23:23 +0000
commit57d85f32f53b122012a63e1a2b93fdcdd7737cdc (patch)
tree42b9837be905a59fa2e262c64a75a09c8a91f960 /ext/socket/constants.c
parent197747f7d6642276d2f8e344f3de24079a7b7717 (diff)
* ext/socket/constants.c (cmsg_type_arg): INET6 check.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/constants.c')
-rw-r--r--ext/socket/constants.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/socket/constants.c b/ext/socket/constants.c
index ea1e0f1..bb817e7 100644
--- a/ext/socket/constants.c
+++ b/ext/socket/constants.c
@@ -100,8 +100,10 @@ cmsg_type_arg(int level, VALUE optname)
return constant_arg(optname, scm_optname_to_int, "unknown UNIX control message");
case IPPROTO_IP:
return constant_arg(optname, ip_optname_to_int, "unknown IP control message");
+#ifdef INET6
case IPPROTO_IPV6:
return constant_arg(optname, ipv6_optname_to_int, "unknown IPv6 control message");
+#endif
case IPPROTO_TCP:
return constant_arg(optname, tcp_optname_to_int, "unknown TCP control message");
case IPPROTO_UDP: