summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-04-01 05:44:34 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-04-01 05:44:34 +0000
commit1143fce06f1e648f1e3622d992d89c012fd409c6 (patch)
tree0fa8efceac0a9c923310b7534db9c446eabed458 /toke.c
parentcb359b415c42e7a6c1192036d2ee416133c9daa1 (diff)
downloadperl-1143fce06f1e648f1e3622d992d89c012fd409c6.tar.gz
Protect the workaround hunk more.
p4raw-id: //depot/perl@9498
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/toke.c b/toke.c
index 00b47c866d..1095ae2113 100644
--- a/toke.c
+++ b/toke.c
@@ -4182,8 +4182,12 @@ Perl_yylex(pTHX)
(void)PerlIO_seek(PL_rsfp, 0L, 0);
}
if (PerlLIO_setmode(PerlIO_fileno(PL_rsfp), O_TEXT) != -1) {
+#ifdef PERLIO_IS_STDIO /* really? */
+# if defined(__BORLANDC__)
/* XXX see note in do_binmode() */
((FILE*)PL_rsfp)->flags &= ~_F_BIN;
+# endif
+#endif
if (loc > 0)
PerlIO_seek(PL_rsfp, loc, 0);
}