summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--ext/socket/option.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index c41185859f..3b7be53c81 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Mon Feb 9 00:44:45 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/option.c (sockopt_inspect): add ifdef guard for
+ LOCAL_PEERCRED.
+
Mon Feb 9 00:37:06 2009 Tanaka Akira <akr@fsij.org>
* ext/socket/option.c (inspect_local_peercred): cr_uid is a effective
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) {