summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/pty/pty.c2
-rw-r--r--ext/sdbm/_sdbm.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/ext/pty/pty.c b/ext/pty/pty.c
index 82c82f16684..b946fc8380e 100644
--- a/ext/pty/pty.c
+++ b/ext/pty/pty.c
@@ -103,8 +103,6 @@ char *MasterDevice = "/dev/pty%s",
static char SlaveName[DEVICELEN];
-extern int errno;
-
#ifndef HAVE_SETEUID
# ifdef HAVE_SETREUID
# define seteuid(e) setreuid(-1, (e))
diff --git a/ext/sdbm/_sdbm.c b/ext/sdbm/_sdbm.c
index d8bfae80b2f..d4cf621ea50 100644
--- a/ext/sdbm/_sdbm.c
+++ b/ext/sdbm/_sdbm.c
@@ -103,7 +103,7 @@ static int duppair proto((char *, datum));
/*
* externals
*/
-#if !defined sun && !defined MSDOS && !defined _WIN32 && !defined __CYGWIN__
+#if !defined sun && !defined MSDOS && !defined _WIN32 && !defined __CYGWIN__ && !defined(errno)
extern int errno;
#endif