Fix for 20010219.013, "perlio perl -we tell goes SEGV".
[p5sagit/p5-mst-13.2.git] / globals.c
index 41dc924..5bf4aea 100644 (file)
--- a/globals.c
+++ b/globals.c
@@ -78,3 +78,14 @@ Perl_fprintf_nocontext(PerlIO *stream, const char *format, ...)
     va_start(arglist, format);
     return PerlIO_vprintf(stream, format, arglist);
 }
+
+int
+Perl_printf_nocontext(const char *format, ...)
+{
+    dTHX;
+    va_list(arglist);
+    va_start(arglist, format);
+    return PerlIO_vprintf(PerlIO_stdout(), format, arglist);
+}
+
+#include "perlapi.h"           /* bring in PL_force_link_funcs */