diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-12-30 08:09:32 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-12-30 08:09:32 +0000 |
commit | 66ac0abe0341c5b3b1189c0ef9805ac931aecf6e (patch) | |
tree | 4871f21f421ea16d19ab5ee4ea6ca1ccec448996 /resolv/res_libc.c | |
parent | Update. (diff) | |
download | glibc-66ac0abe0341c5b3b1189c0ef9805ac931aecf6e.tar.gz glibc-66ac0abe0341c5b3b1189c0ef9805ac931aecf6e.tar.bz2 glibc-66ac0abe0341c5b3b1189c0ef9805ac931aecf6e.zip |
Update.
1999-12-13 Andreas Jaeger <aj@suse.de>
* 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.
Diffstat (limited to 'resolv/res_libc.c')
-rw-r--r-- | resolv/res_libc.c | 8 |
1 files changed, 5 insertions, 3 deletions
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 <string.h> #include <unistd.h> -#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) |