summaryrefslogtreecommitdiff
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
commit40a77284e5158e51e1099b09c50f79a3abe381b5 (patch)
tree0f888641a03c7ef9d7ff86f932ab9c544fe5c925
parentf1efc08bb14af80efa44fe9a61e53654ddf48b61 (diff)
* merged a patch from Takahiro Kambe <taca@back-street.net> to
support DragonFly BSD. [ruby-dev:26984] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--ext/pty/pty.c2
-rw-r--r--ext/sdbm/_sdbm.c2
-rw-r--r--process.c6
4 files changed, 6 insertions, 9 deletions
diff --git a/ChangeLog b/ChangeLog
index 506f654416..a3b9bb6394 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Sep 8 14:58:11 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * merged a patch from Takahiro Kambe <taca@back-street.net> to
+ support DragonFly BSD. [ruby-dev:26984]
+
Thu Sep 8 13:14:57 2005 Tadashi Saito <shiba@mail2.accsnet.ne.jp>
* missing/strchr.c (strrchr): fixed a bug in detecting NUL in a
diff --git a/ext/pty/pty.c b/ext/pty/pty.c
index 82c82f1668..b946fc8380 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 d8bfae80b2..d4cf621ea5 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
diff --git a/process.c b/process.c
index 90e24e7b41..ab8f502c28 100644
--- a/process.c
+++ b/process.c
@@ -2281,7 +2281,6 @@ static VALUE
p_uid_change_privilege(obj, id)
VALUE obj, id;
{
- extern int errno;
int uid;
check_uid_switch();
@@ -2886,7 +2885,6 @@ static VALUE
p_gid_change_privilege(obj, id)
VALUE obj, id;
{
- extern int errno;
int gid;
check_gid_switch();
@@ -3413,7 +3411,6 @@ static VALUE
p_uid_switch(obj)
VALUE obj;
{
- extern int errno;
int uid, euid;
check_uid_switch();
@@ -3455,7 +3452,6 @@ static VALUE
p_uid_switch(obj)
VALUE obj;
{
- extern int errno;
int uid, euid;
check_uid_switch();
@@ -3526,7 +3522,6 @@ static VALUE
p_gid_switch(obj)
VALUE obj;
{
- extern int errno;
int gid, egid;
check_gid_switch();
@@ -3567,7 +3562,6 @@ static VALUE
p_gid_switch(obj)
VALUE obj;
{
- extern int errno;
int gid, egid;
check_gid_switch();