diff options
author | Nick Ing-Simmons <nik@tiuk.ti.com> | 2002-05-02 15:19:20 +0000 |
---|---|---|
committer | Nick Ing-Simmons <nik@tiuk.ti.com> | 2002-05-02 15:19:20 +0000 |
commit | 0553478ef48e094f904ff993d3c57b7325174272 (patch) | |
tree | 4fa68ac6265e12d625a2d13003424bf86e8a9bfe /perlio.c | |
parent | 57143e73be61ad4ed95e8d5fdc799945c48c8339 (diff) | |
download | perl-0553478ef48e094f904ff993d3c57b7325174272.tar.gz |
Use PerlSIO_fdupopen() if not using PerlIO
p4raw-id: //depot/perlio@16346
Diffstat (limited to 'perlio.c')
-rw-r--r-- | perlio.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 } |