diff options
author | Nick Ing-Simmons <nik@tiuk.ti.com> | 2002-05-02 16:10:15 +0000 |
---|---|---|
committer | Nick Ing-Simmons <nik@tiuk.ti.com> | 2002-05-02 16:10:15 +0000 |
commit | 30753f56c8bbfb209552e904d9d76202413ebf24 (patch) | |
tree | f1367b5515daeaafd99537e249f3c261df74b41a /perlio.c | |
parent | 1e8a8f599308436d6e164543b54e022d0b1a9177 (diff) | |
download | perl-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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 } |