summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-08 06:00:56 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-08 06:00:56 +0000
commit4d0675afac3f977c5438b50c74171bc1611e28b1 (patch)
tree0f888641a03c7ef9d7ff86f932ab9c544fe5c925 /ext
parent4ad9d4f0ef3c477f44853c4554d4bb52d8ce33b2 (diff)
downloadruby-4d0675afac3f977c5438b50c74171bc1611e28b1.tar.gz
ruby-4d0675afac3f977c5438b50c74171bc1611e28b1.tar.xz
ruby-4d0675afac3f977c5438b50c74171bc1611e28b1.zip
* merged a patch from Takahiro Kambe <taca@back-street.net> to
support DragonFly BSD. [ruby-dev:26984] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 82c82f166..b946fc838 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 d8bfae80b..d4cf621ea 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