This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Build get_layers() also under -Uuseperlio.
[perl5.git] / universal.c
index 6b011cf..cecf17b 100644 (file)
@@ -726,6 +726,7 @@ XS(XS_PerlIO_get_layers)
     dXSARGS;
     if (items < 1 || items % 2 == 0)
        Perl_croak(aTHX_ "Usage: PerlIO_get_layers(filehandle[,args])");
+#ifdef USE_PERLIO
     {
        SV *    sv;
        GV *    gv;
@@ -841,6 +842,7 @@ XS(XS_PerlIO_get_layers)
             XSRETURN(nitem);
        }
     }
+#endif
 
     XSRETURN(0);
 }