summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 506f6544163..a3b9bb63940 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 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
diff --git a/process.c b/process.c
index 90e24e7b41e..ab8f502c28d 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();