From 66ac0abe0341c5b3b1189c0ef9805ac931aecf6e Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 30 Dec 1999 08:09:32 +0000 Subject: Update. 1999-12-13 Andreas Jaeger * resolv/resolv.h: Remove K&R compatibility. * resolv/res_libc.c: Move definition of _res after res_init, res_init should use the threaded specific context. * resolv/Makefile (+cflags): Remove -Wno-comment since it's not needed anymore. * locale/langinfo.h: Add constants for wide character collation data. * locale/categories.def: Add appropriate entries for collate entries. * locale/C-collate.c: Add initializers for new entries. * locale/programs/ld-collate.c: Implement output of wide character tables. * locale/programs/ld-ctype.c (allocate_arrays): Change algorithm to compute wide character table size a bit: it now gives up a bit of total table size for fewer levels. --- resolv/res_libc.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'resolv/res_libc.c') diff --git a/resolv/res_libc.c b/resolv/res_libc.c index 14d565df0d..b83c27aaae 100644 --- a/resolv/res_libc.c +++ b/resolv/res_libc.c @@ -38,9 +38,6 @@ static const char rcsid[] = "$Id$"; #include #include -#undef _res - -struct __res_state _res; /* This is the old res_init function. It has been moved from res_data.c to this file since res_init should go into libc.so but @@ -90,6 +87,11 @@ res_init(void) { /* We need a resolver context - in unthreaded apps, this weak function provides it. */ +#undef _res + +struct __res_state _res; + + struct __res_state * weak_const_function __res_state(void) -- cgit v1.2.3