summaryrefslogtreecommitdiff
path: root/perlio.c
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>2002-05-02 15:19:20 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>2002-05-02 15:19:20 +0000
commit0553478ef48e094f904ff993d3c57b7325174272 (patch)
tree4fa68ac6265e12d625a2d13003424bf86e8a9bfe /perlio.c
parent57143e73be61ad4ed95e8d5fdc799945c48c8339 (diff)
downloadperl-0553478ef48e094f904ff993d3c57b7325174272.tar.gz
Use PerlSIO_fdupopen() if not using PerlIO
p4raw-id: //depot/perlio@16346
Diffstat (limited to 'perlio.c')
-rw-r--r--perlio.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/perlio.c b/perlio.c
index e80c1f0fbf..57c70410e7 100644
--- a/perlio.c
+++ b/perlio.c
@@ -186,7 +186,12 @@ PerlIO_binmode(pTHX_ PerlIO *fp, int iotype, int mode, const char *names)
PerlIO *
PerlIO_fdupopen(pTHX_ PerlIO *f, CLONE_PARAMS *param, int flags)
{
-#ifndef PERL_MICRO
+#ifdef PERL_MICRO
+ return NULL;
+#else
+#ifdef PERL_IMPLICIT_SYS
+ return PerlSIO_fdupopen(f);
+#else
if (f) {
int fd = PerlLIO_dup(PerlIO_fileno(f));
if (fd >= 0) {
@@ -206,6 +211,7 @@ PerlIO_fdupopen(pTHX_ PerlIO *f, CLONE_PARAMS *param, int flags)
}
#endif
return NULL;
+#endif
}