summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/Cwd/Cwd.xs2
-rw-r--r--ext/Devel/Peek/Peek.xs1
2 files changed, 2 insertions, 1 deletions
diff --git a/ext/Cwd/Cwd.xs b/ext/Cwd/Cwd.xs
index 82b89ac16b..be9427bc41 100644
--- a/ext/Cwd/Cwd.xs
+++ b/ext/Cwd/Cwd.xs
@@ -183,7 +183,9 @@ loop:
#endif
/* It's okay if the close fails, what's an fd more or less? */
+#ifdef HAS_FCHDIR
(void)close(fd);
+#endif
return (resolved);
err1: serrno = errno;
diff --git a/ext/Devel/Peek/Peek.xs b/ext/Devel/Peek/Peek.xs
index 9806427552..a2a4186ab8 100644
--- a/ext/Devel/Peek/Peek.xs
+++ b/ext/Devel/Peek/Peek.xs
@@ -151,7 +151,6 @@ void
fill_mstats(SV *sv, int level)
{
dTHX;
- struct mstats_buffer buf;
if (SvREADONLY(sv))
croak("Cannot modify a readonly value");