Revision: 1168
Author: dubiously
Date: Thu Mar 11 18:44:40 2010
Log: XSUB.h is supposed to redefine fgets under PERL_IMPLICIT_SYS, but doesn't
http://code.google.com/p/perl-devel-nytprof/source/detail?r=1168

Modified:
 /trunk/FileHandle.xs

=======================================
--- /trunk/FileHandle.xs        Thu Mar 11 14:47:51 2010
+++ /trunk/FileHandle.xs        Thu Mar 11 18:44:40 2010
@@ -10,6 +10,11 @@
 #include "EXTERN.h"
 #include "perl.h"
 #include "XSUB.h"
+#if defined(PERL_IMPLICIT_SYS)
+#  ifndef fgets
+#    define fgets PerlSIO_fgets
+#  endif
+#endif

 #include "FileHandle.h"
 #include "NYTProf.h"

--
You've received this message because you are subscribed to
the Devel::NYTProf Development User group.

Group hosted at:  http://groups.google.com/group/develnytprof-dev
Project hosted at:  http://perl-devel-nytprof.googlecode.com
CPAN distribution:  http://search.cpan.org/dist/Devel-NYTProf

To post, email:  [email protected]
To unsubscribe, email:  [email protected]

Reply via email to