> [stmpeters - Thu Nov 04 08:09:26 2004]: > > > [EMAIL PROTECTED] - Thu Oct 28 10:45:31 2004]: > > > > On Thu, Oct 28, 2004 at 10:42:49AM +0300, Denis Vlasenko wrote: > > > This part of perl source code caused build failure on uclibc. > > > > > > perl-5.8.5/perlio.c: > > > > See http://www.uclibc.org/lists/uclibc/2004-March/008512.html > > > > Manuel > > > > Rather than have everyone track it down, here is the proposed patch from > that mailing list email. > > --- perl-5.8.2/perlio.c-dist 2003-12-03 14:30:24.000000000 -0700 > +++ perl-5.8.2/perlio.c 2003-12-03 14:32:10.000000000 -0700 > @@ -2824,7 +2824,15 @@ > /* XXX this could use PerlIO_canset_fileno() and > * PerlIO_set_fileno() support from Configure > */ > -# if defined(__GLIBC__) > +# if defined(__UCLIBC__) > + /* uClibc must come before glibc because it defines __GLIBC__ as > well. */ > +# if defined(__MASK_READING) > + f->__filedes = -1; > +# else > + f->filedes = -1; > +# endif > + return 1; > +# elif defined(__GLIBC__) > /* There may be a better way for GLIBC: > - libio.h defines a flag to not close() on cleanup > */ >
This was included with change #23732.