[PATCH] fopencookie binary compatibility
Jakub Jelinek
jakub@redhat.com
Thu May 18 03:57:00 GMT 2000
On Thu, May 18, 2000 at 12:49:10PM +0200, Andreas Jaeger wrote:
> >>>>> Jakub Jelinek writes:
>
> > Hi!
> > cookie_seek_function_t type changed between 2.0 and 2.2, which causes binary
> > incompatibility between programs using fopencookie compiled with glibc up to
> > 2.1.x and glibc 2.2.
> > This patch should add fopencookie@@GLIBC_2.2 and fopencookie@GLIBC_2.0, so
> > that old programs can continue to work.
> > +#ifdef weak_alias
> > +compat_symbol (libc, _IO_old_fopencookie, fopencookie, GLIBC_2_0);
> > +#endif
> Is the #ifdef really needed? I don't think so.
>
> I'll check the patch in without this if this is ok. Uli, what do you
> think?
That was cut'n'paste from oldiof[gs]etpos*, so if it is not needed here, it
is not needed there either (and I assume it is not needed because e.g.
oldiofclose.c does not have it).
Jakub
More information about the Libc-hacker
mailing list