ruby-changes:22858
From: nobu <ko1@a...>
Date: Mon, 5 Mar 2012 16:52:55 +0900 (JST)
Subject: [ruby-changes:22858] nobu:r34907 (trunk): * ext/socket/extconf.rb: fix typo.
nobu 2012-03-05 16:52:43 +0900 (Mon, 05 Mar 2012) New Revision: 34907 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=34907 Log: * ext/socket/extconf.rb: fix typo. Modified files: trunk/ext/socket/extconf.rb Index: ext/socket/extconf.rb =================================================================== --- ext/socket/extconf.rb (revision 34906) +++ ext/socket/extconf.rb (revision 34907) @@ -453,11 +453,11 @@ have_header("sys/un.h") have_header("sys/uio.h") have_type("struct in_pktinfo", headers) {|src| - src.sub(%r'^/\*top\*/', '\1'"\n#if defined(IPPROTO_IP) && defined(IP_PKTINFO)") << + src.sub(%r'^/\*top\*/', '\&'"\n#if defined(IPPROTO_IP) && defined(IP_PKTINFO)") << "#else\n" << "#error\n" << ">>>>>> no in_pktinfo <<<<<<\n" << "#endif\n" } and have_struct_member("struct in_pktinfo", "ipi_spec_dst", headers) have_type("struct in6_pktinfo", headers) {|src| - src.sub(%r'^/\*top\*/', '\1'"\n#if defined(IPPROTO_IPV6) && defined(IPV6_PKTINFO)") << + src.sub(%r'^/\*top\*/', '\&'"\n#if defined(IPPROTO_IPV6) && defined(IPV6_PKTINFO)") << "#else\n" << "#error\n" << ">>>>>> no in6_pktinfo <<<<<<\n" << "#endif\n" } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/