From 1dff6d785045b900d7c43a5814a31703bae4e205 Mon Sep 17 00:00:00 2001 From: pk Date: Sun, 17 Oct 1993 15:40:11 +0000 Subject: [PATCH] Define our copy of `errno', as it is no longer defined in libc. --- gnu/usr.bin/ld/rtld/rtld.c | 5 +++-- libexec/ld.aout_so/rtld.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/gnu/usr.bin/ld/rtld/rtld.c b/gnu/usr.bin/ld/rtld/rtld.c index 28862c57fd47..6fb5e29a37b2 100644 --- a/gnu/usr.bin/ld/rtld/rtld.c +++ b/gnu/usr.bin/ld/rtld/rtld.c @@ -27,7 +27,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: rtld.c,v 1.1 1993/10/16 21:54:10 pk Exp $ + * $Id: rtld.c,v 1.2 1993/10/17 15:40:11 pk Exp $ */ #include @@ -95,6 +95,7 @@ struct lm_private { char **environ; +int errno; struct link_map *link_map_head, *main_map; struct link_map **link_map_tail = &link_map_head; struct rt_symbol *rt_symbol_head; @@ -615,7 +616,7 @@ xprintf(" BINDER: %s located at = %#x in %s\n", sym, addr, src_map->lm_name); * Run-time common symbol table. */ -#define RTC_TABSIZE 63 +#define RTC_TABSIZE 57 static struct rt_symbol *rt_symtab[RTC_TABSIZE]; /* diff --git a/libexec/ld.aout_so/rtld.c b/libexec/ld.aout_so/rtld.c index 28862c57fd47..6fb5e29a37b2 100644 --- a/libexec/ld.aout_so/rtld.c +++ b/libexec/ld.aout_so/rtld.c @@ -27,7 +27,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: rtld.c,v 1.1 1993/10/16 21:54:10 pk Exp $ + * $Id: rtld.c,v 1.2 1993/10/17 15:40:11 pk Exp $ */ #include @@ -95,6 +95,7 @@ struct lm_private { char **environ; +int errno; struct link_map *link_map_head, *main_map; struct link_map **link_map_tail = &link_map_head; struct rt_symbol *rt_symbol_head; @@ -615,7 +616,7 @@ xprintf(" BINDER: %s located at = %#x in %s\n", sym, addr, src_map->lm_name); * Run-time common symbol table. */ -#define RTC_TABSIZE 63 +#define RTC_TABSIZE 57 static struct rt_symbol *rt_symtab[RTC_TABSIZE]; /*