summaryrefslogtreecommitdiff
path: root/perlio.c
diff options
context:
space:
mode:
authorPerl 5 Porters <perl5-porters@africa.nicoh.com>1996-08-25 00:21:17 +0000
committerAndy Dougherty <doughera@lafcol.lafayette.edu>1996-08-25 00:21:17 +0000
commit33dcbb9a4b5517789b5e779cf126923149d7ff89 (patch)
tree69afc6499e9c769fb6ebd085bf86ce971f759257 /perlio.c
parent3fc1aec64f7c92b9646c7e2f534b41043f54f5ed (diff)
downloadperl-33dcbb9a4b5517789b5e779cf126923149d7ff89.tar.gz
Fixes to support non-std stdio.
Diffstat (limited to 'perlio.c')
-rw-r--r--perlio.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/perlio.c b/perlio.c
index 2da92c24d7..b1bf8602e9 100644
--- a/perlio.c
+++ b/perlio.c
@@ -35,6 +35,13 @@ PerlIO_init()
*/
}
+#undef PerlIO_tmpfile
+PerlIO *
+PerlIO_tmpfile()
+{
+ return tmpfile();
+}
+
#else /* PERLIO_IS_STDIO */
#ifdef USE_SFIO
@@ -158,12 +165,14 @@ PerlIO *f;
char *ptr;
int cnt;
{
+#ifdef FILE_bufsiz
char *e = (char *)(FILE_base(f) + FILE_bufsiz(f));
int ec = e - ptr;
if (ptr > e)
warn("Setting ptr %p > base %p\n",ptr, FILE_base(f)+FILE_bufsiz(f));
if (cnt != ec)
warn("Setting cnt to %d, ptr implies %d\n",cnt,ec);
+#endif
#if defined(USE_STDIO_PTR) && defined(STDIO_PTR_LVALUE)
FILE_ptr(f) = (STDCHAR *) ptr;
#else