summaryrefslogtreecommitdiff
path: root/ext/socket
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-08 15:45:15 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-08 15:45:15 +0000
commitd0454a211e1bb2803ca424af79eda3676b7a48c7 (patch)
tree8508a16717edda3e40c4740cec5ba18840a45c60 /ext/socket
parentf11d2b55f745810c6e1de8c0474001bdf8310efe (diff)
* ext/socket/option.c (sockopt_inspect): add ifdef guard for
LOCAL_PEERCRED. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket')
-rw-r--r--ext/socket/option.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/socket/option.c b/ext/socket/option.c
index 7bffdf8d6b..ff60cfb53c 100644
--- a/ext/socket/option.c
+++ b/ext/socket/option.c
@@ -326,10 +326,12 @@ sockopt_inspect(VALUE self)
}
if (family == AF_UNIX && level == 0) {
+# if defined(LOCAL_PEERCRED)
if (optname == LOCAL_PEERCRED) {
if (inspect_local_peercred(level, optname, data, ret) == -1) goto dump;
goto finish;
}
+# endif
}
switch (level) {