summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-08 17:40:58 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-08 17:40:58 +0000
commit99ad10df3238b2572c35be4a20e52c58ee334e5a (patch)
tree6d8802822c03085befdb3501b6e949da2b99deee
parent72524b60059c21f4fdea60bb2bf1dd68b9bd9e22 (diff)
option.c: fix macro name
* ext/socket/option.c (optname_to_sym): fix macro name. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--ext/socket/option.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 6dc259f..8eada10 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,6 @@
-Tue Apr 9 00:28:40 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Tue Apr 9 02:40:53 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/socket/option.c (optname_to_sym): fix macro name.
* ext/socket/constants.c (rsock_cmsg_type_arg): fix macro name.
diff --git a/ext/socket/option.c b/ext/socket/option.c
index e3e59cf..e8dadf4 100644
--- a/ext/socket/option.c
+++ b/ext/socket/option.c
@@ -21,7 +21,7 @@ optname_to_sym(int level, int optname)
return constant_to_sym(optname, rsock_intern_so_optname);
case IPPROTO_IP:
return constant_to_sym(optname, rsock_intern_ip_optname);
-#ifdef INET6
+#ifdef IPPROTO_IPV6
case IPPROTO_IPV6:
return constant_to_sym(optname, rsock_intern_ipv6_optname);
#endif