[前][次][番号順一覧][スレッド一覧]

ruby-changes:28139

From: nobu <ko1@a...>
Date: Tue, 9 Apr 2013 02:41:08 +0900 (JST)
Subject: [ruby-changes:28139] nobu:r40191 (trunk): option.c: fix macro name

nobu	2013-04-09 02:40:58 +0900 (Tue, 09 Apr 2013)

  New Revision: 40191

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=40191

  Log:
    option.c: fix macro name
    
    * ext/socket/option.c (optname_to_sym): fix macro name.

  Modified files:
    trunk/ChangeLog
    trunk/ext/socket/option.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 40190)
+++ ChangeLog	(revision 40191)
@@ -1,4 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
-Tue Apr  9 00:28:40 2013  Nobuyoshi Nakada  <nobu@r...>
+Tue Apr  9 02:40:53 2013  Nobuyoshi Nakada  <nobu@r...>
+
+	* ext/socket/option.c (optname_to_sym): fix macro name.
 
 	* ext/socket/constants.c (rsock_cmsg_type_arg): fix macro name.
 
Index: ext/socket/option.c
===================================================================
--- ext/socket/option.c	(revision 40190)
+++ ext/socket/option.c	(revision 40191)
@@ -21,7 +21,7 @@ optname_to_sym(int level, int optname) https://github.com/ruby/ruby/blob/trunk/ext/socket/option.c#L21
         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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]