This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
APItest.xs: #include fakesdio.h
authorKarl Williamson <public@khwilliamson.com>
Sat, 21 Dec 2013 23:51:59 +0000 (16:51 -0700)
committerKarl Williamson <public@khwilliamson.com>
Sat, 4 Jan 2014 20:33:07 +0000 (13:33 -0700)
This causes the printf's and other stdio functions in the file to
instead be the PerlIO equivalents.  We aren't trying to test libc
after all.  See http://markmail.org/message/h26bq75cxlfe3y7r

ext/XS-APItest/APItest.xs

index e352195..a4b91f6 100644 (file)
@@ -2,6 +2,7 @@
 #include "EXTERN.h"
 #include "perl.h"
 #include "XSUB.h"
+#include "fakesdio.h"   # Causes us to use PerlIO below
 
 typedef SV *SVREF;
 typedef PTR_TBL_t *XS__APItest__PtrTable;