Another libio patch
Ulrich Drepper
drepper@ipd.info.uni-karlsruhe.de
Fri Oct 10 22:58:00 GMT 1997
hjl@lucon.org (H.J. Lu) writes:
> Please discard my previous libio patch. This patch should
> fix both glibc 2 and libc 5. Please let me know the result
> on libc 5.3.12 on linux/x86.
This looks much better. Though
> #ifdef weak_alias
> weak_alias (_IO_vsprintf, vsprintf)
> +#else
> +#ifdef __ELF__
> +#pragma weak vsprintf = _IO_vsprintf
> +#endif
> #endif
I don't think we should use the alias for other ELF systems (Solaris etc).
I think this should read
#if defined __linux__ && defined __ELF__
-- Uli
---------------. drepper@cygnus.com ,-. Rubensstrasse 5
Ulrich Drepper \ ,-------------------' \ 76149 Karlsruhe/Germany
Cygnus Solutions `--' drepper@gnu.ai.mit.edu `------------------------
More information about the Gcc
mailing list