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

ruby-changes:42289

From: naruse <ko1@a...>
Date: Tue, 29 Mar 2016 15:02:30 +0900 (JST)
Subject: [ruby-changes:42289] naruse:r54363 (ruby_2_3): merge revision(s) 54139: [Backport #12185]

naruse	2016-03-29 15:02:25 +0900 (Tue, 29 Mar 2016)

  New Revision: 54363

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54363

  Log:
    merge revision(s) 54139: [Backport #12185]
    
    * ext/socket/option.c (inspect_tcpi_msec): more accurate condition
      for TCPI msec member inspection function.
      [ruby-core:74388] [Bug #12185]

  Modified directories:
    branches/ruby_2_3/
  Modified files:
    branches/ruby_2_3/ChangeLog
    branches/ruby_2_3/ext/socket/option.c
    branches/ruby_2_3/version.h
Index: ruby_2_3/version.h
===================================================================
--- ruby_2_3/version.h	(revision 54362)
+++ ruby_2_3/version.h	(revision 54363)
@@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_3/version.h#L1
 #define RUBY_VERSION "2.3.0"
 #define RUBY_RELEASE_DATE "2016-03-29"
-#define RUBY_PATCHLEVEL 20
+#define RUBY_PATCHLEVEL 21
 
 #define RUBY_RELEASE_YEAR 2016
 #define RUBY_RELEASE_MONTH 3
Index: ruby_2_3/ext/socket/option.c
===================================================================
--- ruby_2_3/ext/socket/option.c	(revision 54362)
+++ ruby_2_3/ext/socket/option.c	(revision 54363)
@@ -930,7 +930,12 @@ inspect_tcpi_usec(VALUE ret, const char https://github.com/ruby/ruby/blob/trunk/ruby_2_3/ext/socket/option.c#L930
     rb_str_catf(ret, "%s%u.%06us", prefix, t / 1000000, t % 1000000);
 }
 
-#if defined(__linux__) || defined(__sun)
+#if !defined __FreeBSD__ && ( \
+    defined HAVE_STRUCT_TCP_INFO_TCPI_LAST_DATA_SENT || \
+    defined HAVE_STRUCT_TCP_INFO_TCPI_LAST_DATA_RECV || \
+    defined HAVE_STRUCT_TCP_INFO_TCPI_LAST_ACK_SENT  || \
+    defined HAVE_STRUCT_TCP_INFO_TCPI_LAST_ACK_RECV  || \
+    0)
 static void
 inspect_tcpi_msec(VALUE ret, const char *prefix, uint32_t t)
 {
Index: ruby_2_3/ChangeLog
===================================================================
--- ruby_2_3/ChangeLog	(revision 54362)
+++ ruby_2_3/ChangeLog	(revision 54363)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_3/ChangeLog#L1
+Tue Mar 29 14:58:56 2016  Nobuyoshi Nakada  <nobu@r...>
+
+	* ext/socket/option.c (inspect_tcpi_msec): more accurate condition
+	  for TCPI msec member inspection function.
+	  [ruby-core:74388] [Bug #12185]
+
 Tue Mar 29 14:53:58 2016  Naotoshi Seo  <sonots@g...>
 
 	* lib/logger.rb: Remove block from Logger.add as it's not needed

Property changes on: ruby_2_3
___________________________________________________________________
Modified: svn:mergeinfo
   Merged /trunk:r54139


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

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