This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
XSUB.h is supposed to redefine fgets under PERL_IMPLICIT_SYS, but doesn't.
[perl5.git] / 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