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

ruby-changes:27477

From: akr <ko1@a...>
Date: Wed, 27 Feb 2013 22:57:36 +0900 (JST)
Subject: [ruby-changes:27477] akr:r39529 (trunk): * ext/socket/rubysocket.h (union_sockaddr): make it longer for SunOS

akr	2013-02-27 22:55:19 +0900 (Wed, 27 Feb 2013)

  New Revision: 39529

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

  Log:
    * ext/socket/rubysocket.h (union_sockaddr): make it longer for SunOS
      and Darwin.

  Modified files:
    trunk/ChangeLog
    trunk/ext/socket/rubysocket.h

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 39528)
+++ ChangeLog	(revision 39529)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Feb 27 22:54:27 2013  Tanaka Akira  <akr@f...>
+
+	* ext/socket/rubysocket.h (union_sockaddr): make it longer for SunOS
+	  and Darwin.
+
 Wed Feb 27 21:14:34 2013  Kouhei Sutou  <kou@c...>
 
 	* lib/rexml/security.rb (REXML::Security): create.
Index: ext/socket/rubysocket.h
===================================================================
--- ext/socket/rubysocket.h	(revision 39528)
+++ ext/socket/rubysocket.h	(revision 39529)
@@ -161,6 +161,7 @@ typedef union { https://github.com/ruby/ruby/blob/trunk/ext/socket/rubysocket.h#L161
   struct sockaddr_un un;
 #endif
   struct sockaddr_storage storage; 
+  char place_holder[2048]; /* sockaddr_storage is not enough for Unix domain sockets on SunOS and Darwin. */
 } union_sockaddr;
 
 #ifdef __APPLE__

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

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