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

ruby-changes:27431

From: akr <ko1@a...>
Date: Mon, 25 Feb 2013 12:40:32 +0900 (JST)
Subject: [ruby-changes:27431] akr:r39483 (trunk): * ext/socket/extconf.rb: don't test ss_family and ss_len member of

akr	2013-02-25 12:40:16 +0900 (Mon, 25 Feb 2013)

  New Revision: 39483

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

  Log:
    * ext/socket/extconf.rb: don't test ss_family and ss_len member of
      struct sockaddr_storage.  They are not used now except SunOS
      specific code.

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

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 39482)
+++ ChangeLog	(revision 39483)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Mon Feb 25 12:38:50 2013  Tanaka Akira  <akr@f...>
+
+	* ext/socket/extconf.rb: don't test ss_family and ss_len member of
+	  struct sockaddr_storage.  They are not used now except SunOS
+	  specific code.
+
 Mon Feb 25 11:03:38 2013  Akinori MUSHA  <knu@i...>
 
 	* configure.in (unexpand_shvar): Use the numeric comparison
Index: ext/socket/extconf.rb
===================================================================
--- ext/socket/extconf.rb	(revision 39482)
+++ ext/socket/extconf.rb	(revision 39483)
@@ -80,15 +80,6 @@ have_type("struct ip_mreq", headers) # 4 https://github.com/ruby/ruby/blob/trunk/ext/socket/extconf.rb#L80
 have_type("struct ip_mreqn", headers) # Linux 2.4
 have_type("struct ipv6_mreq", headers) # RFC 3493
 
-#   doug's fix, NOW add -Dss_family... only if required!
-doug = proc {have_struct_member("struct sockaddr_storage", "ss_family", headers)}
-if (doug[] or
-    with_cppflags($CPPFLAGS + " -Dss_family=__ss_family", &doug))
-  $defs[-1] = "-DHAVE_SOCKADDR_STORAGE" # change from -DHAVE_ST_SS_FAMILY.
-  doug = proc {have_struct_member("struct sockaddr_storage", "ss_len", headers)}
-  doug[] or with_cppflags($CPPFLAGS + " -Dss_len=__ss_len", &doug)
-end
-
 have_struct_member('struct msghdr', 'msg_control', headers) unless $mswin or $mingw
 have_struct_member('struct msghdr', 'msg_accrights', headers)
 

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

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