XSUB.h is supposed to redefine fgets under PERL_IMPLICIT_SYS, but doesn't.
Jan Dubois [Wed, 21 Apr 2010 23:49:09 +0000 (16:49 -0700)]
See also http://rt.cpan.org/Public/Bug/Display.html?id=55049
with workaround in http://code.google.com/p/perl-devel-nytprof/source/detail?r=1168

XSUB.h

diff --git a/XSUB.h b/XSUB.h
index f23df37..06cb1c3 100644 (file)
--- a/XSUB.h
+++ b/XSUB.h
@@ -507,6 +507,7 @@ Rethrows a previously caught exception.  See L<perlguts/"Exception Handling">.
 #    define ferror             PerlSIO_ferror
 #    define clearerr           PerlSIO_clearerr
 #    define getc               PerlSIO_getc
+#    define fgets              PerlSIO_fgets
 #    define fputc              PerlSIO_fputc
 #    define fputs              PerlSIO_fputs
 #    define fflush             PerlSIO_fflush