diff options
author | Tim Bunce <Tim.Bunce@ig.co.uk> | 1997-06-11 12:00:00 +1200 |
---|---|---|
committer | Tim Bunce <Tim.Bunce@ig.co.uk> | 1997-06-11 12:00:00 +1200 |
commit | 3e3baf6d63945cb64e829d6e5c70a7d00f3d3d03 (patch) | |
tree | 0143be655536dc428f4fa3cc7d01f6bcffe14c01 /win32/win32io.c | |
parent | 08aa1457cd52a368c210ab76a3da91cfadabea1a (diff) | |
parent | 3458556dd685b1767b760a72bd2e9007b5c4575e (diff) | |
download | perl-3e3baf6d63945cb64e829d6e5c70a7d00f3d3d03.tar.gz |
[differences between cumulative patch application and perl5.004_01]perl-5.004_01
[editor's note: The changes between this and 5.004 were processed from
the m1t2 release, which was a bad idea as it was the _01 release which
had the final corrected attributions. The differences between the
various m*t* releases do that; I considered it most valuable just to
look at the _NN releases. Many patches have been separated out and/or
applied from the p5p archives nonetheless.]
Diffstat (limited to 'win32/win32io.c')
-rw-r--r-- | win32/win32io.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/win32/win32io.c b/win32/win32io.c index db156cf133..0651781342 100644 --- a/win32/win32io.c +++ b/win32/win32io.c @@ -65,7 +65,7 @@ dummy_globalmode(int mode) return o; } -#ifdef _DLL +#if defined(_DLL) || defined(__BORLANDC__) /* It may or may not be fixed (ok on NT), but DLL runtime does not export the functions used in the workround */ @@ -147,10 +147,10 @@ my_open_osfhandle(long osfhandle, int flags) /* copy relevant flags from second parameter */ fileflags = FDEV; - if(flags & _O_APPEND) + if(flags & O_APPEND) fileflags |= FAPPEND; - if(flags & _O_TEXT) + if(flags & O_TEXT) fileflags |= FTEXT; /* attempt to allocate a C Runtime file handle */ @@ -190,6 +190,9 @@ my_get_osfhandle( int filehandle ) return _get_osfhandle(filehandle); } +#ifdef __BORLANDC__ +#define _chdir chdir +#endif /* simulate flock by locking a range on the file */ @@ -289,7 +292,7 @@ WIN32_IOSUBSYSTEM win32stdio = { dummy_globalmode, /* (*pfunc_globalmode)(int mode) */ my_open_osfhandle, my_get_osfhandle, - spawnvpe, + spawnvp, _mkdir, _rmdir, _chdir, |