See :
Subject: Re: Static linking notes --- perl5.8.6 and uClibc
Message-ID: <
20041228112542.GB21037@solemn.turbinal.org>
p4raw-id: //depot/perl@23732
/* 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. */
+ f->__filedes = -1;
+ return 1;
+# elif defined(__GLIBC__)
/* There may be a better way for GLIBC:
- libio.h defines a flag to not close() on cleanup
*/