summaryrefslogtreecommitdiff
path: root/ext/socket/extconf.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-11 01:22:08 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-11 01:22:08 +0000
commitb4e50055c3ab9fed6bfded69c2fbd7c5bb410780 (patch)
tree55fdb2b369942dfc8353a72d9f7ddacc7dcddbf7 /ext/socket/extconf.rb
parentb8147c444b70e0e07dcd3c90e3af76ff28f65602 (diff)
* ext/socket/extconf.rb: check getpeereid.
* ext/socket/basicsocket.c (bsock_getpeereid): new method. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22219 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 f3f4529..921a0ee 100644
--- a/ext/socket/extconf.rb
+++ b/ext/socket/extconf.rb
@@ -314,6 +314,8 @@ have_type("struct in6_pktinfo", headers) {|src|
have_type("struct sockcred", headers)
have_type("struct cmsgcred", headers)
+have_func("getpeereid")
+
$distcleanfiles << "constants.h" << "constdefs.*"
if have_func(test_func)