From 40a77284e5158e51e1099b09c50f79a3abe381b5 Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 8 Sep 2005 06:00:56 +0000 Subject: [PATCH] * merged a patch from Takahiro Kambe to support DragonFly BSD. [ruby-dev:26984] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ ext/pty/pty.c | 2 -- ext/sdbm/_sdbm.c | 2 +- process.c | 6 ------ 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 + + * merged a patch from Takahiro Kambe to + support DragonFly BSD. [ruby-dev:26984] + Thu Sep 8 13:14:57 2005 Tadashi Saito * 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();