diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-12 12:43:04 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-12 12:43:04 +0000 |
commit | 7a01268aebada78b505f9ac4736cb23fa8bf260d (patch) | |
tree | acfd54621f334218918c7c496eeb4230ad0e404c /ext/socket/extconf.rb | |
parent | e52da919872f8cf71c90a27b470cef724204eece (diff) | |
download | ruby-7a01268aebada78b505f9ac4736cb23fa8bf260d.tar.gz |
* ext/socket/basicsocket.c (bsock_getpeereid): implemented for Solaris
using getpeerucred.
* ext/socket/extconf.rb: check ucred.h and getpeerucred.
* ext/socket/rubysocket.h: include ucred.h if available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/extconf.rb')
-rw-r--r-- | ext/socket/extconf.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/socket/extconf.rb b/ext/socket/extconf.rb index 921a0eeeee..ae2338d18b 100644 --- a/ext/socket/extconf.rb +++ b/ext/socket/extconf.rb @@ -316,6 +316,9 @@ have_type("struct cmsgcred", headers) have_func("getpeereid") +have_header("ucred.h", headers) +have_func("getpeerucred") + $distcleanfiles << "constants.h" << "constdefs.*" if have_func(test_func) |