diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ext/pty/pty.c | 2 | ||||
-rw-r--r-- | ext/sdbm/_sdbm.c | 2 | ||||
-rw-r--r-- | process.c | 6 |
4 files changed, 6 insertions, 9 deletions
@@ -1,3 +1,8 @@ +Thu Sep 8 14:58:11 2005 Yukihiro Matsumoto <[email protected]> + + * merged a patch from Takahiro Kambe <[email protected]> to + support DragonFly BSD. [ruby-dev:26984] + Thu Sep 8 13:14:57 2005 Tadashi Saito <[email protected]> * 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 @@ -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(); |