mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
f11d2b55f7
commit
d0454a211e
2 changed files with 7 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue