summaryrefslogtreecommitdiff
path: root/ext/socket/extconf.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-08 11:36:18 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-08 11:36:18 +0000
commite960cf417abc5b3c2fef8271412fcfc9c2c32607 (patch)
tree058f5230a9b4ad1471ccaaf297b66c19fb3059bc /ext/socket/extconf.rb
parent732b695163362f2ef865a077a22c2bf5187cd4d4 (diff)
* ext/socket/extconf.rb: check struct sockcred.
* ext/socket/ancdata.c (anc_inspect_socket_creds): new function to show SCM_CREDS on NetBSD. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/extconf.rb')
-rw-r--r--ext/socket/extconf.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/socket/extconf.rb b/ext/socket/extconf.rb
index a0a4f8e..ad36112 100644
--- a/ext/socket/extconf.rb
+++ b/ext/socket/extconf.rb
@@ -308,6 +308,8 @@ have_type("struct in6_pktinfo", headers) {|src|
"#else\n" << "#error\n" << ">>>>>> no in6_pktinfo <<<<<<\n" << "#endif\n"
}
+have_type("struct sockcred", headers)
+
$distcleanfiles << "constants.h" << "constdefs.*"
if have_func(test_func)