From 7b4486c87774f6318b7bd1cabae5480136357c31 Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 8 Sep 2005 05:59:43 +0000 Subject: * merged a patch from Takahiro Kambe to support DragonFly BSD. [ruby-dev:26984] * object.c (rb_mod_cvar_get, rb_mod_cvar_set): document fix from sheepman ; a bug in visibility description. [ruby-dev:26965] * sprintf.c (rb_f_sprintf): warn "too many argument" on verbose mode (-v/-w); backported from 1.9. [ruby-dev:26963] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/pty/pty.c | 2 -- ext/sdbm/_sdbm.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'ext') diff --git a/ext/pty/pty.c b/ext/pty/pty.c index f2cd871cbd..db072744d6 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 -- cgit v1.2.3