summaryrefslogtreecommitdiff
path: root/perlio.c
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>2002-05-02 16:10:15 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>2002-05-02 16:10:15 +0000
commit30753f56c8bbfb209552e904d9d76202413ebf24 (patch)
treef1367b5515daeaafd99537e249f3c261df74b41a /perlio.c
parent1e8a8f599308436d6e164543b54e022d0b1a9177 (diff)
downloadperl-30753f56c8bbfb209552e904d9d76202413ebf24.tar.gz
Win32 builds and mostly works for non-USE_PERLIO non-USE_IMP_SYS case.
- move body of fdupopen() from perlhost.h to win32.h as win32_fdupopen() - use it in perlio.c p4raw-id: //depot/perlio@16349
Diffstat (limited to 'perlio.c')
-rw-r--r--perlio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/perlio.c b/perlio.c
index 57c70410e7..bcfa2568e2 100644
--- a/perlio.c
+++ b/perlio.c
@@ -192,6 +192,9 @@ PerlIO_fdupopen(pTHX_ PerlIO *f, CLONE_PARAMS *param, int flags)
#ifdef PERL_IMPLICIT_SYS
return PerlSIO_fdupopen(f);
#else
+#ifdef WIN32
+ return win32_fdupopen(f);
+#else
if (f) {
int fd = PerlLIO_dup(PerlIO_fileno(f));
if (fd >= 0) {
@@ -212,6 +215,7 @@ PerlIO_fdupopen(pTHX_ PerlIO *f, CLONE_PARAMS *param, int flags)
#endif
return NULL;
#endif
+#endif
}