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

ruby-changes:27198

From: akr <ko1@a...>
Date: Fri, 15 Feb 2013 12:39:18 +0900 (JST)
Subject: [ruby-changes:27198] akr:r39250 (trunk): * ext/socket/extconf.rb: test struct sockaddr_storage directly.

akr	2013-02-15 12:36:05 +0900 (Fri, 15 Feb 2013)

  New Revision: 39250

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

  Log:
    * ext/socket/extconf.rb: test struct sockaddr_storage directly.
    
    * ext/socket/rubysocket.h: use HAVE_TYPE_STRUCT_SOCKADDR_STORAGE.

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

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 39249)
+++ ChangeLog	(revision 39250)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Feb 15 12:34:58 2013  Tanaka Akira  <akr@f...>
+
+	* ext/socket/extconf.rb: test struct sockaddr_storage directly.
+
+	* ext/socket/rubysocket.h: use HAVE_TYPE_STRUCT_SOCKADDR_STORAGE.
+
 Fri Feb 15 12:26:13 2013  Tanaka Akira  <akr@f...>
 
 	* ext/socket/getaddrinfo.c (GET_AI): don't cast 1st argument for
Index: ext/socket/rubysocket.h
===================================================================
--- ext/socket/rubysocket.h	(revision 39249)
+++ ext/socket/rubysocket.h	(revision 39250)
@@ -125,7 +125,7 @@ typedef int socklen_t; https://github.com/ruby/ruby/blob/trunk/ext/socket/rubysocket.h#L125
 # define IN6_IS_ADDR_UNIQUE_LOCAL(a) (((a)->s6_addr[0] == 0xfc) || ((a)->s6_addr[0] == 0xfd))
 #endif
 
-#ifndef HAVE_SOCKADDR_STORAGE
+#ifndef HAVE_TYPE_STRUCT_SOCKADDR_STORAGE
 /*
  * RFC 2553: protocol-independent placeholder for socket addresses
  */
Index: ext/socket/extconf.rb
===================================================================
--- ext/socket/extconf.rb	(revision 39249)
+++ ext/socket/extconf.rb	(revision 39250)
@@ -54,6 +54,8 @@ have_header("sys/uio.h") https://github.com/ruby/ruby/blob/trunk/ext/socket/extconf.rb#L54
 
 have_header("ucred.h", headers)
 
+have_type("struct sockaddr_storage", headers)
+
 have_type("struct addrinfo", headers)
 
 have_type("socklen_t", headers)

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

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