summaryrefslogtreecommitdiff
path: root/ext/socket/extconf.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-12-30 21:01:13 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-12-30 21:01:13 +0000
commit815fccb4dc075c44253b4b6d9d9114abfc0fba68 (patch)
treecd894f389873ba06eba80bad428032e5e0c83845 /ext/socket/extconf.rb
parent1069e0f33569071d43dff77bdca1064a8acb1a0f (diff)
* ext/socket/extconf.rb: use have_struct_member.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/extconf.rb')
-rw-r--r--ext/socket/extconf.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/ext/socket/extconf.rb b/ext/socket/extconf.rb
index 7b744b4..bebbf97 100644
--- a/ext/socket/extconf.rb
+++ b/ext/socket/extconf.rb
@@ -319,14 +319,11 @@ 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)") <<
"#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)") <<
"#else\n" << "#error\n" << ">>>>>> no in6_pktinfo <<<<<<\n" << "#endif\n"
}
-if have_struct_member("struct in_pktinfo", "ipi_spec_dst", headers)
- $defs[-1] = "-DHAVE_IPI_SPEC_DST"
-end
have_type("struct sockcred", headers)
have_type("struct cmsgcred", headers)