summaryrefslogtreecommitdiff
path: root/ext/socket/extconf.rb
diff options
context:
space:
mode:
authortakano32 <takano32@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-18 08:04:17 +0000
committertakano32 <takano32@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-18 08:04:17 +0000
commit867cd89920f99ecc316bc226323fc075d5bc7c51 (patch)
tree785cd8bf3c756d4e0431e3ee05f3f7ee1571be3e /ext/socket/extconf.rb
parenta8aa5c44fcacdb5e2b2c842d71aabe98a7570005 (diff)
* ext/socket/ancdata.c: not use pktinfo.ipi_spec_dst if not defined
* ext/socket/extconf.rb: define HAVE_IPI_SPEC_DST git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/extconf.rb')
-rw-r--r--ext/socket/extconf.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/socket/extconf.rb b/ext/socket/extconf.rb
index ae2338d..79c9d30 100644
--- a/ext/socket/extconf.rb
+++ b/ext/socket/extconf.rb
@@ -310,6 +310,9 @@ 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)