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

ruby-changes:28961

From: nobu <ko1@a...>
Date: Sat, 1 Jun 2013 07:54:07 +0900 (JST)
Subject: [ruby-changes:28961] nobu:r41013 (trunk): * ext/socket/option.c (inspect_byte): used only on NetBSD.

nobu	2013-06-01 07:53:58 +0900 (Sat, 01 Jun 2013)

  New Revision: 41013

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

  Log:
    * ext/socket/option.c (inspect_byte): used only on NetBSD.

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

Index: ext/socket/option.c
===================================================================
--- ext/socket/option.c	(revision 41012)
+++ ext/socket/option.c	(revision 41013)
@@ -484,6 +484,7 @@ inspect_int(int level, int optname, VALU https://github.com/ruby/ruby/blob/trunk/ext/socket/option.c#L484
     }
 }
 
+#ifdef __NetBSD__
 static int
 inspect_byte(int level, int optname, VALUE data, VALUE ret)
 {
@@ -495,6 +496,7 @@ inspect_byte(int level, int optname, VAL https://github.com/ruby/ruby/blob/trunk/ext/socket/option.c#L496
         return 0;
     }
 }
+#endif
 
 static int
 inspect_errno(int level, int optname, VALUE data, VALUE ret)

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

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