aboutsummaryrefslogtreecommitdiffstats
path: root/ext/socket/rubysocket.h
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-12 12:43:04 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-12 12:43:04 +0000
commit7a01268aebada78b505f9ac4736cb23fa8bf260d (patch)
treeacfd54621f334218918c7c496eeb4230ad0e404c /ext/socket/rubysocket.h
parente52da919872f8cf71c90a27b470cef724204eece (diff)
downloadruby-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/rubysocket.h')
-rw-r--r--ext/socket/rubysocket.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/socket/rubysocket.h b/ext/socket/rubysocket.h
index ae21f2608c..d6f09fe1e2 100644
--- a/ext/socket/rubysocket.h
+++ b/ext/socket/rubysocket.h
@@ -79,6 +79,9 @@
#ifdef HAVE_SYS_UCRED_H
#include <sys/ucred.h>
#endif
+#ifdef HAVE_UCRED_H
+#include <ucred.h>
+#endif
#ifndef EWOULDBLOCK
#define EWOULDBLOCK EAGAIN